diff --git a/src/Utils/DateTime.php b/src/Utils/DateTime.php index 963407c0d..648a88adb 100644 --- a/src/Utils/DateTime.php +++ b/src/Utils/DateTime.php @@ -52,7 +52,7 @@ public static function from(string|int|\DateTimeInterface|null $time): static $time += time(); } - return (new static('@' . $time))->setTimezone(new \DateTimeZone(date_default_timezone_get())); + return (new static())->setTimestamp($time); } else { // textual or null return new static((string) $time);