Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time wrong on google calendars #11

Open
GoogleCodeExporter opened this issue Mar 29, 2015 · 0 comments
Open

Time wrong on google calendars #11

GoogleCodeExporter opened this issue Mar 29, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant