Project

General

Profile

Actions

Bug #15884

closed

Time module fails to identify timezone correctly

Added by Anonymous almost 5 years ago. Updated almost 5 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]
[ruby-core:92878]

Description

I think the following snippet is the best summary of the problem I could write:

irb(main):001:0> Time.new(2012, 12, 1).utc?
=> false
irb(main):002:0> Time.new(2012, 12, 1).zone == 'UTC'
=> true
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0