Skip to content

Conversation

@anphung
Copy link

@anphung anphung commented Jul 5, 2017

Without time zone:

  • When creation_time is saved to db, it is save as local time e.g +0200 EET
  • When creation_time is read from db, it is read as +0000 +0000
    E.g:
  1. creation_time is initialized: 2014-03-26 17:05:30.889109334 +0200 EET
  2. Save into db it becomes: 2014-03-26 17:05:30.889109
  3. Read from db to creation_time, it becomes: 2014-03-26 17:05:30.889109 +0000 +0000

=> (1) != (3)

With time zone: (1) == (3)

Reference: lib/pq#247 (comment)

@cbusbey cbusbey added this to the v0.6.0 milestone Aug 14, 2017
@cbusbey
Copy link
Contributor

cbusbey commented Aug 14, 2017

Whew, sorry this took so long to merge. Thanks! 🍻

@cbusbey cbusbey merged commit 5e58323 into quickfixgo:master Aug 14, 2017
@cbusbey cbusbey added the Bug Behavior not matching expected label Aug 14, 2017
@anphung anphung deleted the fix/postgres-sql branch October 9, 2019 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Behavior not matching expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants