06 9 / 2017
If you are using sails with waterline and struggling with timezones, try this first
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!