Skip to content

Instantly share code, notes, and snippets.

@vahanNasibyan
Created February 5, 2018 14:52
Show Gist options
  • Save vahanNasibyan/b0660c2fdda1046eb5e75ac87164d99f to your computer and use it in GitHub Desktop.
Save vahanNasibyan/b0660c2fdda1046eb5e75ac87164d99f to your computer and use it in GitHub Desktop.
Where wrapper to ignore Timezone in Postgres
const condition = {
test: this.sequelize.literal(
`timezone('UTC', modified::timestamptz) > '${moment(
this.config.last_parse,
).format('YYYY-MM-DD HH:mm:ss +00:00')}'`,
),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment