06 9 / 2017

I am using node.js framework sails which internally uses the Waterline ORM and while saving a record to MySQL the auto-generated timestamps (createdAt and updatedAt) were being saved in local timezone instead of being saved in UTC. After wasting a few hours, this fixed it for me:


Hope this helps someone save a few hours!

blog comments powered by Disqus