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

Sequelize 4 returns date strings not timestamps so don't shift #123

Closed
wants to merge 1 commit into from

Commits on Nov 10, 2017

  1. Sequelize 4 returns date strings not timestamps so don't shift

    As of Sequelize 4 dateonly fields are returned as date strings not
    dateTime strings.  Therefore the formatting functionality here will
    return incorrect values for dateonly fields in Sequelize 4 if the server
    is in a timezeon with a negative UTC shift.
    
    Ex: I have 1990-10-02 stored in my DB.  The formatting function will
    shift that to 1990-10-01T16:00:00 if I am in PST.  In the UI 01/10/1990
    will be shown
    
    sequelize/sequelize#4858
    gcoombe committed Nov 10, 2017
    Configuration menu
    Copy the full SHA
    ac057eb View commit details
    Browse the repository at this point in the history