[TZInfo-users] Time zone
Jesper Andersen
rails at j-f.dk
Wed Jun 21 06:23:23 EDT 2006
I seem to have some problem with this timezone. The problem is that any
time, no matter what timezone is reported to be UTC time. The times are
correct, just the timezone information returned with the time is wrong.
Below are some examples. Am I doing something wrong or is this a bug?
>> c=Timezone.get 'Europe/Copenhagen'
=> Europe - Copenhagen
>> t=Time.now.utc
=> Wed Jun 21 03:17:24 UTC 2006
>> c.utc_to_local(t)
=> Wed Jun 21 05:17:24 UTC 2006
>> t.utc?
=> true
>> c.utc_to_local(t).utc?
=> true
>> c.now
=> Wed Jun 21 06:49:51 UTC 2006
>> c.now.rfc2822
=> "Wed, 21 Jun 2006 06:51:18 -0000"
>> c.now.zone
=> "UTC"
I am using:
tzinfo (0.2.2)
ruby 1.8.4
--
Jesper
11:18:28 up 6 days, 3:25, 12 users, load average: 0.73, 0.63, 0.59
More information about the TZInfo-users
mailing list