ical.js
ical.js copied to clipboard
Difference in parsed dates on different servers
I'm sure this is a server setting that I'm missing, but I am parsing the same feed (with the same code) on two servers and the time stamps are coming out different. Both servers are synced to ntp. Other than that I don't know where to look. Any ideas? Thanks!
What are you seeing?
I've done the same import on three servers. Two work identically in that they import the dates correctly. I'm printing the date objects and the date/time shows proper GMT time and the proper timezone on the date object.
The third server is showing the GMT as the timezone-adjusted date/time (in my case, central US time). So, the timestamp is 5 hours off.
On Aug 2, 2013, at 4:57 PM, Peter Braden [email protected] wrote:
What are you seeing?
— Reply to this email directly or view it on GitHub.
Can you try:
export TZ=GMT
on the machine?
I'm seeing this too, it seems ical.js ignores TZID effectively, so a entry like (e.g. as used by meetup) DTSTART;TZID=Europe/London:20141112T180000 is interpreted in the timezone local to machine where as (as used by google) DTSTART:20141112T180000Z is interpreted at UTC though both should be the same at the moment.
This is handled by the dateParam function, though fixing it would need a timezone library.