Drupal timezone information
- by Sebastian Hoitz
In my drupal installation I can get the offset from UTC in seconds to the timezone I specified in the admin panel using
variable_get('date_default_timezone', 0)
However, now that we have daylight-saving-time, the time I get is always off by one hour. Is there a way to retrieve the actual timezone string from Drupal, as "Europe/Berlin" for example?
The reason is, that I have to use this with Zend Framework's Zend_Date, but Drupal does not set the PHP default timezone, as
echo date_default_timezone_get();
gives me System/Localtime.