#66793"simulate time" in admin-panel does not respect timezone
Description
The entered time in the text field “simulate time” is evaluated as UTC / GMT even though a different timezone is set on client + server machine (CEST / “Europe/Berlin”).
This problem exists in 4.5.40 and 6.2.12.
More info:
php.ini:
date.timezone = "Europe/Berlin"
System timezone: CEST
LocalConfiguration.php:
'phpTimeZone' => 'Europe/Berlin',
'serverTimeZone' => '2',
reproduce
- Set allowed time from 9:00 to 10:00 for a page (e.g. 9:00 5-5-2015)
- Enter 7:18 in “simulate time” in admin panel
Result
Allowed content (9:00 to 10:00) is displayed for entered time of 7:18 > not correct
conclusion:
“simulate time” in admin-panel is evaluated as UTC (it does not use current timezone)
Test
entered time for content: 6:00 – 9:00
entered time in “simulate time” in admin panel:
3:00 : content not visible
4:00 : content visisble
5:00 : content visible
6:00 : content visible
6:59 : content visisble
7:00 : content not visisble
+2 hours offset
Reviews 2
Related issues 5
- Bug #27919Preview in Admin Panel does not handle Timezone correctly
- Feature #80559datetime and time handling should always have timezone information
- Epic #84044Admin Panel Rework
- Feature #84584Re-Design the admin panel
- Feature #85021Add hint for entering date/time in "simulate time" text field in admin panel