neilfr / Scorekeeper

Hockey scorekeeper application that simplifies game data capture, provides real-time updates and replaces the need for hardcopy scoresheets
https://ancient-headland-43747.herokuapp.com/
1 stars 1 forks source link

createAt and updatedAt is logging weird time in db. Not sure if this is UTC related. #35

Closed chrisfernandes123 closed 5 years ago

chrisfernandes123 commented 5 years ago

MySQL / sequelize logs the UTC (universal standard time) for the createdAt and updatedAt. As per Angelo the best practice is to leave the datetime as UTC and then use moment.js to format the time based on the user's locale.