sdepold/sequelize — pull request #102 by seifertd (2011-10-17 03:54:26+00:00)
Title: Save DATE values in UTC/GMT timezone

I have the need to make sure all dates saved by sequelize.js are stored in UTC instead of the local time zone. I didn't see a clean and easy way to do this, so I settled on easy. I added the ability to specify in the options hash the property utc_dates. If this is defined and its value evaluates as true, the toSqlDate function in the Utils module will generate a UTC time string. No test that weren't failing before fail with my changes. Anyway, maybe it will give you an idea for a better implementation ...

Add configuration option utc_dates that stores any DATE column in UTC instead of locale time zone.