Issue Bug Closed

#66793"simulate time" in admin-panel does not respect timezone

Sybille Peters 05/05/15, 09:54 updated 10/02/18, 11:44

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

  1. Set allowed time from 9:00 to 10:00 for a page (e.g. 9:00 5-5-2015)
  2. 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