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

ICS file doesn't respect London Time Zone #90

Open
erinosher opened this issue Oct 10, 2019 · 6 comments · Fixed by #101
Open

ICS file doesn't respect London Time Zone #90

erinosher opened this issue Oct 10, 2019 · 6 comments · Fixed by #101
Labels
bug Something isn't working good first issue Good for newcomers Hacktoberfest help wanted Extra attention is needed

Comments

@erinosher
Copy link
Member

Our ICS file generation in /scripts/generateICS.js just sets all events to UTC. When generating the file it should generate it using GMT and BST where applicable as all events are run in the UK Local Time.

@erinosher erinosher added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers Hacktoberfest labels Oct 10, 2019
@arvidboivie
Copy link
Contributor

I'll take a look at this

@arvidboivie
Copy link
Contributor

I can't really figure this one out, to me it seems like it already works. Would it be possible to describe a test case?

@erinosher
Copy link
Member Author

Hi @arvidboivie here's an example

Below, is a snippet from the current generation of the ICS

BEGIN:VEVENT
UID:[email protected]
SUMMARY:Intro to Linux
DTSTAMP:20191010T223700Z
DTSTART:20191015T183000Z
DTEND:20191015T200000Z
URL:https://hacksocnotts.co.uk/event/2019-intro-to-linux
GEO:52.9533603;-1.1892748
LOCATION:A32 - Ada Lovelace Lab
STATUS:CONFIRMED
ORGANIZER;CN=HackSoc Nottingham:mailto:[email protected]
BEGIN:VALARM
ACTION:DISPLAY
TRIGGER:-PT2H
END:VALARM
BEGIN:VALARM
ACTION:DISPLAY
TRIGGER:-PT1H
END:VALARM
BEGIN:VALARM
ACTION:DISPLAY
TRIGGER:-PT15M
END:VALARM
END:VEVENT

You'll note that both DTSTART and DTEND are formatted with a Z at the end indicating that they're in UTC time.

However, the event above happens next week at 18:30 local time, which would be 17:30 Z because the UK is currently one hour ahead of GMT.

I believe the fix would be either to use the Europe/London timezone when generating the stamps or write a different way for the generation of the timestamps to be daylight savings time aware.

@DanielCordell
Copy link
Contributor

@aaronosher @arvidboivie the ical file is now showing our events as running at midnight as far as I can see. Would this change have broken it?

@arvidboivie
Copy link
Contributor

@DanielCordell If that behaviour is recent then it is likely that my change broke it. I would suggest the changes to be reverted in that case, I do not currently have time to troubleshoot this.

@erinosher
Copy link
Member Author

@DanielCordell in my outlook, it seems to be fine, however, I think the behaviour may have come from removing time-zones all together.

Reverting #101 and updating it to calculate time zone is probably the best option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers Hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants