Hi Evert (and anybody else that might know the answer)
I saw your post here:
http://derickrethans.nl/storing-date-time-in-database.html
And wondered if you had any code or exmples for creating a VTIMEZONE
from a PHP timezone object.
try iCalCreator @ http://www.kigkonsult.se/iCalcreator/index.php
maybe there's something in there.
Cheers,
Ingo
> So if you specify returning all the times in UTC, you don't need to
> worry about the Calendar VTIMEZONE at all?
No, you still need to specify it, like this:
BEGIN:VTIMEZONE
TZID:UTC
BEGIN:STANDARD
DTSTART:20071028T010000
TZOFFSETTO:+0000
TZOFFSETFROM:+0000
END:STANDARD
END:VTIMEZONE
On 2010-10-19, at 1:55 AM, jamesdlow wrote:
> And related to that, should I always expect an iCalendar object to
> return a UTC date. This seems to suggest it:
> http://www.kanzaki.com/docs/ical/dtstamp.html
No, it could be any timezone for DTSTART, DTEND, etc..
Ideally you retain all the timezones specified by the user, but when you're generating your own ics files, it might be helpful to just use UTC.
MIGHT, because it could still be annoying for DST changes. When you're dealing with recurring events, and you would stick to UTC, your events shift an hour after a DST change.
So it really depends on your needs.
It's not terribly difficult to generate suitable VTIMEZONE objects for other timezones though.
Evert