Giter Site home page Giter Site logo

Comments (6)

edmorley avatar edmorley commented on September 26, 2024

The fix seems to be to change getDate() and friends to the UTC equivalents (getUTCDate() etc) - that is presuming people are fine with all dates being UTC.

from auto-changelog.

cookpete avatar cookpete commented on September 26, 2024

This was pointed out by @a-ignatov-parc in #35. However, wouldn't changing to use UTC mean a user in the the US evening could generate a changelog with a release date of the next day? Seems a bit strange, but maybe it's less weird than the problem you describe.

from auto-changelog.

cookpete avatar cookpete commented on September 26, 2024

Perhaps the best solution is to add a --timezone option but default to UTC.

from auto-changelog.

eliperelman avatar eliperelman commented on September 26, 2024

Another solution would be to not format the date at all, but show an ISO-8601 string.

from auto-changelog.

cookpete avatar cookpete commented on September 26, 2024

Another solution would be to not format the date at all, but show an ISO-8601 string.

We would have the same problem with possible "releases from the future" even with ISO strings, for people who don't understand what is going on.

I think the solution is to use UTC dates for now, like @a-ignatov-parc originally suggested, and if there is enough demand from non-UTC users who are seeing weird dates, I'll look at adding a --timezone or --local-date option.

from auto-changelog.

edmorley avatar edmorley commented on September 26, 2024

Many thanks :-)

from auto-changelog.

Related Issues (20)

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.