-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update to work with latest crystal #131
Conversation
Thank you, I'll keep an eye on this, but if you notice the new release first, please bump this. |
@greenbigfrog / @will if a non utc Time is sent as a param to be stored, pg will later return it with the original timezone or translated to UTC? In the specs I only see UTC times been used. In the other drivers (at least for now) I am forcing that the time is saved in UTC since the DateTime in mysql has no timezone information. Maybe in the future we could have which tz should be used by the db, but for now forcing UTC seems fine to me. |
I'm also pro-forcing-utc if that is at all reasonable. Right now looking a pq/param.cr, I think it assumes that all |
postgres has a |
I'm not sure if doing that will help. As far as I can tell
Inserting two different offsets into a tstz, they come back in my local laptop's tz:
whereas timestamp just ignores the extra info (which, as an aside, is behavior I don’t understand why anyone would want)
|
Hmm, I thought tstz stored the explicit timezone the time was in. Thats not the case, so I was wrong. |
The time has come, my Travis builds fail with require "./pg/*"
^
in lib/pg/src/pg/decoder.cr:4: undefined constant JSON::Type
alias PGValue = String | Nil | Bool | Int32 | Float32 | Float64 | Time | JSON::Type | PG::Numeric
^~~~~~~~~~ |
I cherry-picked this into master and released v0.15.0. Thanks! |
Do not merge. Wait for crystal release