Giter Site home page Giter Site logo

Comments (7)

grgrssll-dev avatar grgrssll-dev commented on June 3, 2024 1

It seems to work if I use 'US/Pacific' instead of 'America/Los_Angeles' in the options.timezone

from mariadb-connector-nodejs.

rusher avatar rusher commented on June 3, 2024 1

ok, found the issue. Using timezone exactly corresponding to client current timezone might cause automatic retrieval of server timezone.
This is corrected with 9fc5d23 that will be in next release

from mariadb-connector-nodejs.

knoxcard avatar knoxcard commented on June 3, 2024

I know this might sound stupid, but have you tried...

yarn add https://github.com/MariaDB/mariadb-connector-nodejs.git
or
npm install https://github.com/MariaDB/mariadb-connector-nodejs.git

from mariadb-connector-nodejs.

rusher avatar rusher commented on June 3, 2024

Can you indicate sequelize and moment-timezone versions in package-lock.json ?
I fail to understand how 'US/Pacific' instead of 'America/Los_Angeles' would change anything with the latest version.

from mariadb-connector-nodejs.

grgrssll-dev avatar grgrssll-dev commented on June 3, 2024

Sorry for the delay.
The mariadb-connector-nodejs did not help...

sequelize: 5.8.6
moment-timezone: 0.5.25

The sequelize constructor options for dialectOptions are

// Doesn't work
dialectOptions: {
    timezone: 'America/Los_Angeles',
    // also doesn't work if no timezone option presented
},
// throws: ER_WRONG_AUTO_TIMEZONE
// Does work
dialectOptions: {
    timezone: 'US/Pacific',
},

from mariadb-connector-nodejs.

knoxcard avatar knoxcard commented on June 3, 2024

Everything good? Close issue?

from mariadb-connector-nodejs.

grgrssll-dev avatar grgrssll-dev commented on June 3, 2024

Fix verified working for me. Thanks

from mariadb-connector-nodejs.

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.