You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Use
$ical = new
ICal('https://www.google.com/calendar/ical/vk8jabjtlgkm43nrpa5f2j7d4s%40group.ca
lendar.google.com/private-23a9c345d3cf3b5a749e362dda839de8/basic.ics');
$events = $ical->events();
foreach($events as $event) {
date('G:i',$ical->iCalDateToUnixTimestamp($event['DTSTART']))
}
on a Google calendar and it will show the difference of 2h at the moment
(1h normal and 1h due to day light savings time).
What is the expected output? What do you see instead?
It will show the difference of 2h at the moment
(1h normal and 1h due to day light savings time).
What version of the product are you using? On what operating system?
Revision 13. Mac OS X.
Please provide any additional information below.
There is an easy fix: replace
$timestamp = mktime(
by
$timestamp = gmmktime(
and it will get it right.
Original issue reported on code.google.com by Intellig...@gmail.com on 4 Oct 2013 at 5:14
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
Intellig...@gmail.com
on 4 Oct 2013 at 5:14The text was updated successfully, but these errors were encountered: