DATE-TIME values in iCAL export/download are always in UTC
-
Hi,
when exporting an event in the ICS/iCAL format, the DATE-TIME values which are stored in the local time-zone of the DB are exported as UTC.
The reason seems to be in event-o-matic.php around line 1440:echo "TRANSP:TRANSPARENT\r\n"; // for availability. echo sprintf("DTSTART;VALUE=DATE-TIME:%s\r\n",date('Ymd\THis\Z',$start)); echo sprintf("DTEND;VALUE=DATE-TIME:%s\r\n",date('Ymd\THis\Z',$end)); echo "END:VEVENT\r\n";
The – manually entered – trailing
\Z
in the calls todate(...)
indicate that the values are in UTC – which simply is not true normally.
- The topic ‘DATE-TIME values in iCAL export/download are always in UTC’ is closed to new replies.