Background: Our list of preferred dateTimeFormatString is based on ISO
there are datetime strings in this list that pg does not understand. So a plain to_timestamp('2018-08-08 09:00-08','' does not always work.
example dataset: https://portal-s.edirepository.org/nis/reportviewer?packageid=knb-lter-ble.9.1
with the dateTimeFormatString = YYYY-MM-DDThh:mm-hh The last -hh is the offset to UTC, and is correct.
the error you get is
ERROR: conflicting values for "mm" field in formatting string Detail: This value contradicts a previous setting for the same field type.
To see what strings posgtres allows, see
https://www.postgresqltutorial.com/postgresql-to_timestamp/
Background: Our list of preferred dateTimeFormatString is based on ISO
there are datetime strings in this list that pg does not understand. So a plain to_timestamp('2018-08-08 09:00-08','' does not always work.
example dataset: https://portal-s.edirepository.org/nis/reportviewer?packageid=knb-lter-ble.9.1
with the dateTimeFormatString =
YYYY-MM-DDThh:mm-hhThe last-hhis the offset to UTC, and is correct.the error you get is
ERROR: conflicting values for "mm" field in formatting string Detail: This value contradicts a previous setting for the same field type.To see what strings posgtres allows, see
https://www.postgresqltutorial.com/postgresql-to_timestamp/