Actions
Bug #17024
closedTimes with timezones return incorrect wday and yday
Description
The timezone support added to Time in Ruby 2.6 does not appear to handle wday and yday.
I don't know what the most appropriate fix is, but looking at time.c and the commit which introduced the timezone feature it looks like vtm->wday
and vtm->yday
are both set by vtm_add_offset
, and that isn't called with the new block of code which handles the timezone.
I've attached a patch to the tests and specs which demonstrates the bug.
Files
Actions
Like0
Like0Like0Like0Like0Like0