Skip to content

SQLite updating DATE column return wrong format #5482

@lancetw

Description

@lancetw

dialect: SQLite

UPDATE posts SET start_date='2016-02-24 16:00:00.000 +00:00' WHERE id = 123;

sequelize@3.4.0 (expected)

{ startDate: Thu Feb 25 2016 00:00:00 GMT+0800 (CST) }

sequelize@3.19.3 (wrong format)

{ startDate: '2016-02-24 16:00:00.000 +00:00' }


No problem when execute INSERT, both return local datetime (i.e. CST) .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions