[TZInfo-users] Misunderstanding (or bug?) with timezones from Etc/GMT+X

Pavel Valodzka valodzka at gmail.com
Sat Sep 20 11:14:47 EDT 2008


For example  GMT+2. It's mean european summer time, yes? When at GMT is 5
hour, GMT+2 - 7 hour (GMT + 2 hour).
But tzinfo thinks other - it calculat GMT+2 as  GMT-2 hour:
>> tz = TZInfo::Timezone.get 'Etc/GMT+2'
=> #<TZInfo::DataTimezone: Etc/GMT+2>
>> tz.now
=> Sat Sep 20 12:53:07 UTC 2008
>> Time.now.utc
=> Sat Sep 20 14:53:12 UTC 2008

It's bug or, may be, GMT+X mean UTC-X?

-- 
Павел
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/tzinfo-users/attachments/20080920/c17a9fdc/attachment.html>


More information about the TZInfo-users mailing list