Code Monkey home page Code Monkey logo

Comments (5)

sebastienbarbier avatar sebastienbarbier commented on August 16, 2024 1

This is a bug regression from the client regarding the way it handle timzones within momentJS. I could reproduce, changing my local timezone from a day before current UTC, I believe this issue was only tested with hours before UTC not a day, not great đŸ˜„.
If we are lucky, stored date should still be UTC and fix will be able to maintain data integrity without requiring to manually fix them 🙌.
Will put this issue as critical, and be top priority before any new dev, thanks so much for reporting it.

from seven23.

sebastienbarbier avatar sebastienbarbier commented on August 16, 2024 1

Changing timezone on local machine, this issue is caused by a javascript cast from string which should not be done :

new Date(2020, 07, 01)
Date Sat Aug 01 2020 00:00:00 GMT-0900 (heure d’étĂ© d’Hawaii - AlĂ©outiennes)

new Date('2020-08-01')
Date Fri Jul 31 2020 15:00:00 GMT-0900 (heure d’étĂ© d’Hawaii - AlĂ©outiennes)

Code needs to be updated using a proper cast/convert function. Work in progress 🙌

from seven23.

sebastienbarbier avatar sebastienbarbier commented on August 16, 2024 1

3 weeks for a fix 🙈, was way bigger than expected as I had to refactor the all date handling.
Should all be good now, dates are string based and generated in local timezone instead of having some weird UTC references. 👍.
Thanks a lot for the feedback and helping to make a better app.

from seven23.

sebastienbarbier avatar sebastienbarbier commented on August 16, 2024

After more testing, dates are stored with the wrong day within indexedDB, data integrity is compromised đŸ˜„.

from seven23.

steveny9911 avatar steveny9911 commented on August 16, 2024

This is amazing! Thanks so much for the fix!

from seven23.

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.