Skip to content
  • Andrew White's avatar
    a56b150b
    Adjust for daylight savings in String#to_time · a56b150b
    Andrew White authored
    The changes in b79adc43 had a bug where if the time in the String
    was in standard time but the current time was in daylight savings then
    the calculated adjustment was off by an hour.
    
    This commit fixes this and adds extra tests for the following:
    
    * time in string is standard time, current time is standard time
    * time in string is standard time, current time is daylight savings
    * time in string is daylight savings, current time is standard time
    * time in string is daylight savings, current time is daylight savings
    
    Fixes #10306.
    a56b150b
    Adjust for daylight savings in String#to_time
    Andrew White authored
    The changes in b79adc43 had a bug where if the time in the String
    was in standard time but the current time was in daylight savings then
    the calculated adjustment was off by an hour.
    
    This commit fixes this and adds extra tests for the following:
    
    * time in string is standard time, current time is standard time
    * time in string is standard time, current time is daylight savings
    * time in string is daylight savings, current time is standard time
    * time in string is daylight savings, current time is daylight savings
    
    Fixes #10306.
Loading