Code Monkey home page Code Monkey logo

Comments (5)

ardiesaeidi avatar ardiesaeidi commented on June 16, 2024

My concern with allowing this is now the API developer will have to manage datetime properly and that becomes a slippery slope.

  • UTC is more reliable, the client can display the date and time in whatever format they want
  • Users are in timezones, not offsets and that can change over time
    • What happens if a client saves the converted date values and they are no longer correct?
    • For example, what if california no longer observes DST but a client stores those values?

from hyperion.

teehill avatar teehill commented on June 16, 2024

So just use UTC with offset and avoid the daylight savings debacle?

from hyperion.

iameugenejo avatar iameugenejo commented on June 16, 2024

I agree, but what do we do when customers want the date fields in their timezone offset at the time of their request?

Interpreting the time difference due to timezone change after DST change is on them in that case, of course.

from hyperion.

iameugenejo avatar iameugenejo commented on June 16, 2024

By the way, I have 0 problem with responding UTC date fields as long as I can include non-UTC date time for downloadable contents for this issue - #20

from hyperion.

ardiesaeidi avatar ardiesaeidi commented on June 16, 2024

So just use UTC with offset and avoid the daylight savings debacle?

No unfortunately offset is heavily dependent on the timezone and that is also affected by DST.

from hyperion.

Related Issues (8)

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.