How to prevent JSON.stringify() from altering date?

Source: https://stackoverflow.com/questions/34488026/how-to-prevent-json-stringify-from-altering-date

var db_config = {
     host     : 'localhost',
     user     : 'xxx',
     password : '',
     database : 'xxx',
     timezone: 'utc'  //<-here this line was missing
};
That timezone variable solved my problem. I found the answer here:NodeJS responded MySQL timezone is different when I fetch directly from MySQL

Không có nhận xét nào:

Is it okay to use both fetchpriority="high" and loading="eager" in img tag?

 https://stackoverflow.com/questions/77744344/is-it-okay-to-use-both-fetchpriority-high-and-loading-eager-in-img-tag Yes Fetchpriority and l...