Replies: 1 comment 1 reply
-
Thanks for the heads up. I'll try to get this supported added before the next release. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Once I started using the named_timezones extension, I noticed the created_at/updated_at timestamps lost all the subsecond precision. This occurs when setting the
Sequel.application_timestamp
to something other than:utc
(or presumably:local
too).I traced it to happen at this point
sequel/lib/sequel/extensions/named_timezones.rb
Line 85 in 90f6fe5
Time
object is created only using the seconds of the original.Looking at https://rubyapi.org/3.1/o/time#method-c-at, you can pass the nanoseconds as well (all the way back to Ruby 2.6). Is there a reason not to include the nanoseconds of the original here? I created another extension with this method modified:
and it's working great.
Beta Was this translation helpful? Give feedback.
All reactions