When adding a new record into my database I get the error:
Conversion failed when converting date and/or time from character string
The datetime
it tries to insert is:
2015-10-05 21:43:57.000 +00:00
It seems that Sequelise also inserts the timezone.
I tried setting the "timezone" to an empty string but this didn't help.
How can I insert a valid SQL Server DATETIME
with sequelize?
Model:
RegDate : {
type : Tedious.TYPES.DateTime,
defaultValue: Sequelize.NOW
}