Hi,
using the time zone handling function, I get wrong results.
My Moodle site has got these entries for Europe/Berlin
938,Europe/Berlin,1970,Germany,60,0,4,10,-1,0,03:00,10,1,0,0,03:00
939,Europe/Berlin,1980,EU,60,60,4,1,0,0,1:00,9,-1,0,0,1:00
940,Europe/Berlin,1981,EU,60,60,3,-1,0,0,1:00,9,-1,0,0,1:00
941,Europe/Berlin,1996,EU,60,60,3,-1,0,0,1:00,10,-1,0,0,1:00
Although we currently HAVE summertime in Germany (CEST=UTC+2), the functions return only one hour offset instead of two:
get_user_timezone() Europe/Berlin
get_timezone_offset(get_user_timezone()) 3600
For sure the problem is sitting in front of the screen ... but what's my mistake?
Best regards, Dieter
PS: Moodle itself is displaying the time correctly (e.g. admin->report->logs->timestamp of most recent activity)