Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Fixed undefined constant Time::Utc error #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

drum445
Copy link

@drum445 drum445 commented Jan 20, 2019

Small fix for the the UTC breaking chances

@@ -48,7 +48,7 @@ class BSON
t = LibBSON.bson_oid_get_time_t(@handle)
ts = LibC::Timespec.new
ts.tv_sec = t
Time.new(ts, Time::Kind::Utc)
Time.new(ts, location: Time::Location.load("utc"))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it better to use Time::Location::UTC directly? real question I don't know, I just think that constant access looks faster than method call.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants