[TZInfo-users] GMT timezones

Mark Pentland mark.pent at gmail.com
Sun Dec 19 21:52:45 EST 2010


In not sure if i'm missing something but it appears the GMT +- timezones are
inverted.

I'm in Brisbane/Australia (GMT + 10), so i'm expecting it to behave similar
to Etc/GMT+10


code


require 'tzinfo'
tz = TZInfo::Timezone.get('Australia/Brisbane')
local = tz.utc_to_local(Time.utc(2005,8,29,12,0,0))

=> "Mon Aug 29 22:00:00 UTC 2005" #what i would expect.... (10 hrs after
GMT)




require 'tzinfo'
tz = TZInfo::Timezone.get('Etc/GMT+10')
local = tz.utc_to_local(Time.utc(2005,8,29,12,0,0))

=> "Mon Aug 29 02:00:00 UTC 2005"  #this seems the opposite to me... (10 hrs
before GMT)


Is my assumption incorrect?

Thanks

Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/tzinfo-users/attachments/20101220/4220695c/attachment.html>


More information about the TZInfo-users mailing list