[TZInfo-users] Solomon Island & daylight savings time

Stephane Pelchat stephane at coupa.com
Fri Nov 2 00:33:26 UTC 2012


Thanks for the investigation Phil!

I'll follow up with the ActiveSupport team,

-S

On Thu, Nov 1, 2012 at 4:56 PM, Philip Ross <phil.ross at gmail.com> wrote:

> Hi Stephane,
>
> On 1 November 2012 22:56, Stephane Pelchat <stephane at coupa.com> wrote:
> > We have received a report that the Solomon Island timezone is being
> > calculated as if daylight savings was observed there, but it is in fact
> not
> > the case.
> >
> > - Using tzinfo (0.3.31)
> > - "Pacific - Guadalcanal"
> > - ActiveSupport::TimeZone.all returns: "(GMT+12:00) Solomon Is."
> >
> > But Solomon Island should be GMT+11
> > (
> http://www.timeanddate.com/library/abbreviations/timezones/pacific/sbt.html
> )
>
> TZInfo does return an offset of GMT+11 for the Solomon Islands
> (Pacific/Guadalcanal) and indicates that daylight savings is not
> observed:
>
> > zone = TZInfo::Timezone.get('Pacific/Guadalcanal')
> > period = zone.period_for_utc(Time.utc(2013, 1, 1))
> > period.utc_total_offset / 3600.0
> => 11.0
> > period.dst?
> => false
>
> ActiveSupport::TimeZone maps "Solomon Is." to the Asia/Magadan
> timezone (in the MAPPING Hash in
> lib/active_support/values/time_zone.rb). Since Magadan is a town in
> Russia that observes a timezone of GMT+12, the ActiveSupport mapping
> would appear to be incorrect.
>
> Kind regards,
>
> Phil
> _______________________________________________
> TZInfo-users mailing list
> TZInfo-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/tzinfo-users
>



-- 
Stéphane Pelchat
Development Director

Coupa Software | www.coupa.com
stephane at coupa.com
925.528.9848

Gartner Ranks Coupa
#1<http://www.coupa.com/purchasing-procurement-press-releases/leading-analyst-firm-profiles-coupa-software-in-a-new-market-landscape-report>
          Coupa's Stellar
Growth<http://www.spendmatters.com/index.cfm/2012/1/18/Coupas-Stellar-2011-Growth-is-Proof-That-P2P-Fresh-Thinking-is-Thriving>
          Coupa
Customers<http://www.coupa.com/purchasing-procurement-customers/customers>

*Join the conversation!*
[image: LinkedIn] <http://www.linkedin.com/company/99595> [image:
Facebook]<http://www.facebook.com/coupasoftware>
 [image: Twitter] <http://www.twitter.com/coupa> [image:
YouTube]<https://www.youtube.com/user/CoupaSoftware>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/tzinfo-users/attachments/20121101/237539ff/attachment-0001.html>


More information about the TZInfo-users mailing list