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

You should use gmmktime for Google Calendar ICS files #15

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

You should use gmmktime for Google Calendar ICS files #15

GoogleCodeExporter opened this issue Mar 29, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

• What steps will reproduce the problem?
1. Parse a Google Calendar ICS file. Google uses only GMT to avoid conflicts 
with daylight saving times  
2. Use the function iCalDateToUnixTimestamp and it will return a bad timestamp 
if your location is not UTC / GMT. 

• What is the expected output? What do you see instead?
For example : an event starting 2015-01-20 17:00:00 GMT will be timestamped 
2015-01-20 16:00:00 GMT if you are located in Paris and your server configured 
like that. 

• What version of the product are you using? On what operating system?
Current - OSX 10.9.5 - MAMP Latest

• Please provide any additional information below.
My solution : use gmmktime instead of mktime in the iCalDateToUnixTimestamp 
function.

I hope I am clear... :)
And this helps some people.

Thxxxxxx for your useful class.

Regards

Julien


Original issue reported on code.google.com by julien.f...@gmail.com on 20 Jan 2015 at 3:10

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