Actions
Bug #19295
closedTime#wday returns 7
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux]
Description
This issue happens since Ruby 2.7, since Z
and UTC
are allowed for a zone.
[1] pry(main)> Time.new(2023, 1,3,0,0,0,"UTC").wday
=> 7
[2] pry(main)> Time.new(2023, 1,3,0,0,0,"Z").wday
=> 7
This also breaks all weekday Time#monday?
, etc. methods.
Actions
Like1
Like0Like0Like0Like0Like0