I use node-datetime as my package to get date & time, the problem is, when i wake up, the datetime is always changed in my server, so i need to restart my project first in the morning to get the real time. But if i save to my mysql database, it saves the real time.
module.exports = {
'connection': {
'host': 'localhost',
'user': 'root',
'password': '',
'timezone' : 'utc',
'dateStrings' : true
},
'database': 'cash_hunter'
};
that's my code, i've been finding the solution for many weeks
via alvin corwin
No comments:
Post a Comment