Skip to content

Commit daba480

Browse files
gr8manmichalsn
andauthored
Update system/I18n/TimeTrait.php
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
1 parent 51d0e30 commit daba480

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎system/I18n/TimeTrait.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public static function today($timezone = null, ?string $locale = null)
158158
*/
159159
public static function yesterday($timezone = null, ?string $locale = null)
160160
{
161-
return (new static(null, $timezone, $locale))->modify('-1 day')->setTime(0, 0, 0, 0);
161+
return (new static(null, $timezone, $locale))->modify('yesterday');
162162
}
163163

164164
/**

0 commit comments

Comments
 (0)