Hi Paul,
thanks for pointing that out: the discussion on the ticket makes
sense, even though a different name like "utc_offset_without_dst"
would make it clearer...
Cheers!
Cyrille
On Nov 4, 6:57 pm, PaulF <
paulflewell...@gmail.com> wrote:
> Hi Cyrille,
>
> TimeZone class doesn't implement DST rules, but TimeWithZone class
> does.
>
> To get the DST offset use the TimeWithZone class>> Time.current.utc_offset
>
> => 46800
>
> But if you do the following its uses the TimeZone class>> Time.zone.utc_offset
>
> => 43200
>
> The conversation around this ticket explains itshttps://
rails.lighthouseapp.com/projects/8994/tickets/3037