You can't set that a timezone which is based on DST does not work with DST.
You can only set the timezones which are supported by PHP itself.
But when you know which date has which difference to UTC simply set UTC as
timezone as make a difference calculation.
Greetings
Thomas
----- Original Message -----
From: "Oliver Espeter" <
[hidden email]>
To: <
[hidden email]>
Sent: Wednesday, March 04, 2009 4:00 PM
Subject: [fw-i18n] Zend_Date/Timezones with/without DST
Hello!
Our PHP-/Oracle-Project works internally to 100% in UTC. Now we must connect
to external systems working in various time zones and so we have to convert
the times of each request/response. That’s normally not the problem thanks
Zend_Date.
date_default_timezone_set('UTC');
[...]
$utc = 123456789;
$zd = new Zend_Date($utc);
$zd->setTimezone('Europe/Berlin');
$externalTime = $zd->getIso();
But: We have some external systems (eg. standing in Germany/System-Timezone
‘Europe/Berlin’) that are ignoring DST or only working in DST. So they are
working generally in UTC+1 (some systems in UTC+2). Other systems are
normally configured so that the time get changed two times a year. The
timezones and whether the systems use DST or not are configured together
with the connection data.
Can we configure Zend_Date to use Europe/Berlin but work only in normal time
or only in DST? Or can we set the timezone instead of ‘Europe/Berlin’ to
something like UTC+1.
Mit freundlichen Grüßen / Best Regards
Oliver Espeter