Skip to content

Custom Sequelize Datataype #366

@devin-efw

Description

@devin-efw

How can we define a custom sequelize datatype?

Sequelize is automatically converting the date to include time zone adjustments. Because of this, inserts into the mssql DB are failing.

I would like to define a datatype to override the stringify method for the Date datatype. Doing so, following the sequelize documentation, I'm unable to override the method (https://sequelize.org/docs/v6/other-topics/extending-data-types/) is not working properly.

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