Timezone as text #2842
-
In a postgres database I get this error:
in my build.yaml I use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Drift's With postgres, you can use TimestampColumn get myDate => customType(PgTypes.timestampNoTimezone)(); In the next version, |
Beta Was this translation helpful? Give feedback.
Drift's
dateTime()
column can't be used with postgres dates - it always expects a text/int column because that's all we get with sqlite3.With postgres, you can use
In the next version,
PgTypes.timestampWithTimezone
will be available as well. But as long as you're connecting to an existing database (that is, you're not letting drift emit theCREATE TABLE
statements), the two time types are identical.