mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
b594492870
Currently if a time is changed during DST overlap in the autumn then the method `period_for_local` will return the DST period. However if the original time is not DST then this can be surprising and is not what is generally wanted. This commit changes that behavior to maintain the current period if it's in the list of periods returned by `periods_for_local`. It is possible to alter the behavior of `period_for_local` by specifying a second argument but since we may be change from another time that could be either DST or not then this would give inconsistent results. Fixes #12163. |
||
---|---|---|
.. | ||
time_zone.rb | ||
unicode_tables.dat |