fix: Fix reminders for single digit hours (00:00-09:00) (#1663)

This commit is contained in:
Christopher Zentgraf
2018-08-09 17:48:37 +02:00
committed by Alexis Saettler
parent e94a6d5f43
commit d855d52492
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -264,7 +264,7 @@ class User extends Authenticatable
$isTheRightTime = true;
$dateToCompareTo = $date->hour(0)->minute(0)->second(0)->toDateString();
$currentHourOnUserTimezone = now($this->timezone)->format('G:00');
$currentHourOnUserTimezone = now($this->timezone)->format('H:00');
$currentDateOnUserTimezone = now($this->timezone)->hour(0)->minute(0)->second(0)->toDateString();
$defaultHourReminderShouldBeSent = $this->account->default_time_reminder_is_sent;