You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
utc_offset gives the base offset of the time zone (not taking daylight savings time into account). For the total offset including daylight savings time, use utc_total_offset instead:
The #utc_offset and #utc_total_offset attributes are often confused
(#55, #89). Rename as #base_utc_offset and #current_utc_offset
respectively.
Retain the old names as aliases.
I'm trying to get the offset from the UTC time at Israel timezone:
TZInfo::Timezone.get('Israel').current_period.utc_offset / (60*60)
The result is 2 hours when 3 hours is expected (http://www.timeanddate.com/time/zone/israel/jerusalem)
The text was updated successfully, but these errors were encountered: