Actions
Bug #10698
closedTime#local behaves differently during clock change
Bug #10698:
Time#local behaves differently during clock change
Description
This is probably not a bug but since it changes previous behavior it should be noted somewhere.
Ruby 2.1.5:
>> ENV['TZ'] = 'Europe/Berlin'
=> "Europe/Berlin"
>> Time.local(2011,10,30,2,0,0).zone
=> "CET"
Ruby 2.2.0:
>> ENV['TZ'] = 'Europe/Berlin'
=> "Europe/Berlin"
>> Time.local(2011,10,30,2,0,0).zone
=> "CEST"
So in older Ruby versions the object represents the time after the clock change (within the extra hour), while in Ruby 2.2.0 it represents the time before time is set back.
Actions