Skip to content

Commit dc14007

Browse files
committed
DateTime::fromParts() is non-locale aware [Closes #248]
1 parent c77ecc3 commit dc14007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils/DateTime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public static function fromParts(
7474
int $minute = 0,
7575
float $second = 0.0
7676
) {
77-
$s = sprintf('%04d-%02d-%02d %02d:%02d:%02.5f', $year, $month, $day, $hour, $minute, $second);
77+
$s = sprintf('%04d-%02d-%02d %02d:%02d:%02.5F', $year, $month, $day, $hour, $minute, $second);
7878
if (
7979
!checkdate($month, $day, $year)
8080
|| $hour < 0

0 commit comments

Comments
 (0)