On 2 Oct 2009, at 10:06, Colin Law wrote:

>
> 2009/10/2 Frederick Cheung <[email protected]>:
>>
>>
>>
>> On Oct 2, 9:06 am, Colin Law <[email protected]> wrote:
> [snip]
>>>
>>> Don't know. I guess the system or Ruby would have to be updated
>>> regularly to keep it up to date, DST dates keep changing.
>>>
>>>
>> The tzinfo gem is regularly updated based on a public domain database
>> of dst rules etc (http://www.twinsun.com/tz/tz-link.htm)
>>
> gem list does not show that I have the tzinfo gem installed, yet
> Time.dst? works for me, at least in my timezone.
>

I believe that just uses whatever knowledge the system has of  
timezones, whereas tzinfo does not rely on that (and of course easier  
to update if needed). Also has various utilities related to  
manipulating timezones etc.

Rails bundles in a version of tzinfo.

Fred

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to