postgresql-dart icon indicating copy to clipboard operation
postgresql-dart copied to clipboard

timeZone not working for PostgreSQLConnection()?

Open pst9354 opened this issue 6 years ago • 1 comments

I have a problem with time zones.

It seems to default to UTC if not specified in PostgreSQLConnection(), but it doesn't matter what timeZone you set, for example if setting: timeZone: "Europe/Stockholm", it still believes it is in UTC, tested with SELECT now();

Is this a known problem?

pst9354 avatar Aug 08 '19 11:08 pst9354

I also ran into this issue, made a fork and solved it like this: https://github.com/newsvoice/postgresql-dart/commit/d5471d0ab9ca73dc882cd73443a2ffa593777063

vlidholt avatar Aug 14 '19 09:08 vlidholt