Git Product home page Git Product logo

Comments (4)

qwandor avatar qwandor commented on May 2, 2024

Those seem like reasonable ideas, I'll have a go at implementing them. The change is going to require changing all existing files though, which is a pain.

from dancelist.

qwandor avatar qwandor commented on May 2, 2024

I've started looking into this, and unfortunately daylight savings time boundaries make it tricky.

Just moving the timezone offset to a field by itself doesn't work, because sometimes an event will run over a DST boundary, e.g. from 2024-03-30T20:00:00+00:00 to 2024-03-31T04:00:00+01:00, where the start and end UTC offsets are different. Having a separate field with the timezone name rather than the offset (e.g. Europe/London in this example) almost works, except that there are some times right on the boundary that are ambiguous (and some that don't exist at all). E.g. 2024-10-27T01:30:00 in Europe/London refers to two different times, either before or after the offset change. It's unclear how to handle this. I could always pick one, but that makes it impossible to correctly enter events starting or ending within a particular hour each year.

Your third suggestion of mapping cities to default timezone is possible (as part of the add event form), though is more of a pain without timezone names being stored in events.

from dancelist.

torotil avatar torotil commented on May 2, 2024

Ok, I see the edge cases πŸ€”

Would it be an option to still allow the start and end time to specify an offset? Then this could be used to disambiguate the rare edge cases while still not needing to care for almost all events. So my suggestions would just be a fallback for when there is no offset specified. This would also remove the need to migrate existing files.

NB: As an organiser I would expect half of my audience to just understand the wrong time in those cases anyway β€” even if I list the time in an unambiguous way. πŸ˜‚

from dancelist.

qwandor avatar qwandor commented on May 2, 2024

#315 is now live, https://folkdance.page/add will automatically set the timezone based on the country and state.

from dancelist.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.