Skip to content

Commit 4628fdf

Browse files
committed
chore: explain the G and i
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent e704bd5 commit 4628fdf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/Service/ReminderService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ protected function getStartTime(string $startTime): ?\DateTime {
148148
$this->logger->error('Failed to parse reminder send time: ' . $e->getMessage());
149149
return null;
150150
}
151+
// 'G' = 24-hour format hour (no leading zeros),
152+
// 'i' = minutes with leading zeros
151153
$dateTime->setTime((int)$time->format('G'), (int)$time->format('i'));
152154
$dateTime->setTimezone(new \DateTimeZone('UTC'));
153155
if ($dateTime <= $now) {

0 commit comments

Comments
 (0)