Skip to content

Commit a01ead1

Browse files
committed
chore: use G instead of H when format a date
G will return 0 to 23 H will return 00 to 23 G will return without left zero when is a number with only a digit. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent f5daf44 commit a01ead1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/ReminderService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ protected function getStartTime(string $startTime): ?\DateTime {
146146
} catch (DateMalformedStringException) {
147147
return null;
148148
}
149-
$tomorrow->setTime((int)$time->format('H'), (int)$time->format('i'));
149+
$tomorrow->setTime((int)$time->format('G'), (int)$time->format('i'));
150150
$tomorrow->setTimezone(new \DateTimeZone('UTC'));
151151

152152
return $tomorrow;

0 commit comments

Comments
 (0)