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

Conversation

@drum445
Copy link

@drum445 drum445 commented Jan 20, 2019

Small fix for the the UTC breaking chances

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