Reputation: 1
I live in Brazil and i want to change timezone to -03:00
, but that code doesn't work
File:config.json.
"development": {
"username": "root",
"password": "",
"database": "sequelize_cli",
"host": "127.0.0.1",
"dialect": "mysql",
"operatorsAliases": false,
"timezone": "-03:00"
}
Upvotes: 0
Views: 843
Reputation: 33
First of all, I don't know exactly your type of env like (development, test or production) that you have or not already define. to ensure please check your ./models/index.js
the image of the ./models/index.js
in that code you can see on the 7th line that have you ever have an env or not?, and if you didn't have, then the env will be define as development
for default. but
if you have any env in your code, please ensure the NODE_ENV is development
Upvotes: 1