This package extends Sequelize to support the DATE_NO_TZ data type for PostgreSQL, enabling storage of timestamps without time zone (equivalent to PostgreSQL's timestamp without time zone). The current version is 1.0.0. It is a minimal utility that wraps Sequelize's DataTypes to add the missing DATE_NO_TZ type, addressing an open Sequelize issue. It is not actively maintained and has no updates since initial release. It is a simple drop-in solution for users who need to work with timestamps that ignore timezone conversion.
npm install sequelize-date-no-tz-postgresNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to extend Sequelize DataTypes with DATE_NO_TZ and use it in a model definition. Shows import, initialization, and model creation.
Ensure dialect is set to 'postgres' when instantiating Sequelize.
Call withDateNoTz once and reuse the extended DataTypes object.
Use type assertion like DataTypes.DATE_NO_TZ as any or define custom typings.
Ensure dates are inserted as ISO strings without timezone or convert to UTC before insertion.
const DataTypes = withDateNoTz(Sequelize.DataTypes); then use DataTypes.DATE_NO_TZ.
Ensure dialect is 'postgres' and that the package is properly required and applied.
npm install sequelize-date-no-tz-postgres
No dependency data recorded yet.