ical.js icon indicating copy to clipboard operation
ical.js copied to clipboard

Difference in parsed dates on different servers

Open s2young opened this issue 11 years ago • 4 comments

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!

s2young avatar Aug 02 '13 20:08 s2young

What are you seeing?

peterbraden avatar Aug 02 '13 21:08 peterbraden

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.

s2young avatar Aug 02 '13 22:08 s2young

Can you try:

export TZ=GMT

on the machine?

peterbraden avatar Aug 02 '13 22:08 peterbraden

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.

rythie avatar Nov 30 '14 21:11 rythie