refactor: use variable DEFAULT_TIMEZONE

This commit is contained in:
2025-10-08 20:52:40 +04:00
parent f1f056f7f3
commit 04a7e4c6eb
6 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ setSecurityHeaders();
];
foreach($timezones as $name => $timezone):
$targetDateLocal = new DateTime(COUNTDOWN_TARGET_DATE, new DateTimeZone('Indian/Reunion'));
$targetDateLocal = new DateTime(COUNTDOWN_TARGET_DATE, new DateTimeZone(DEFAULT_TIMEZONE));
$targetDateLocal->setTimezone(new DateTimeZone($timezone));
// Vérifier si c'est un jour différent