We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d93403 commit cead663Copy full SHA for cead663
src/Utils/DateTime.php
@@ -52,7 +52,7 @@ public static function from(string|int|\DateTimeInterface|null $time): static
52
$time += time();
53
}
54
55
- return (new static('@' . $time))->setTimezone(new \DateTimeZone(date_default_timezone_get()));
+ return (new static)->setTimestamp((int) $time);
56
57
} else { // textual or null
58
return new static((string) $time);
0 commit comments