Hi Phil, thanks for your reply.<br><br><div class="gmail_quote">On Wed, Nov 12, 2008 at 11:10 AM, Philip Ross <span dir="ltr"><<a href="mailto:phil.ross@gmail.com">phil.ross@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
The svn trunk currently contains the latest version of the data<br>
(2008i), but I haven't had a chance to make a release yet. I'll try<br>
and sort this out in the next day or two.</blockquote><div><br></div><div>Great</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">TZInfo 0.3.11 uses version 2008g of the tz database. As far as I can<br>
see the America/Caracas zone hasn't changed since version 2007j, so<br>
0.3.11 should be giving you the correct results.</blockquote><div><br></div><div> I knew the latest version had the correct details, but didn't know how many versions ago it had been updated.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<br>
I saw your post on the tz mailing list<br>
(<a href="http://thread.gmane.org/gmane.comp.time.tz/2455" target="_blank">http://thread.gmane.org/gmane.comp.time.tz/2455</a>). Why do you think<br>
that TZInfo is reporting an offset of -4:00 for the Caracas zone?<br>
Using TZInfo 0.3.11, I get the correct result (-4:30):<br>
<br>
>> Time.now<br>
=> Tue Nov 11 23:59:23 +0000 2008<br>
>> TZInfo::Timezone.get('America/Caracas').now<br>
=> Tue Nov 11 19:29:27 UTC 2008<br>
>> TZInfo::Timezone.get('America/Caracas').current_period.utc_total_offset / 3600.0<br>
=> -4.5<br>
<br>
The tzinfo module for Caracas you've posted also shows that the last<br>
transition sets the offset to :o2, which has an offset of -16200<br>
seconds (-4:30 hours, the same as the tz database extract).<br></blockquote><div><br></div><div>Thanks for pointing that out. I can see where I was mistaken - we're using the tzinfo_timezone plugin for Ruby on Rails which claims "This plugin installs a replacement for the TimeZone class. The replacement uses the TZInfo library (<a href="http://tzinfo.rubyforge.org">http://tzinfo.rubyforge.org</a>) to do the time zone conversions" but I see now that they've actually hard-coded the UTC offset labels for display purposes and have set Caracas to -14400.</div>
<div><br></div><div>Looks like it's resulting in correct calculations though:</div><div><br></div><div><div>>> TzTime.zone = TimeZone['Caracas']</div><div>=> #<TzinfoTimezone:0x1782a48 @tzinfo=#<TZInfo::DataTimezone: America/Caracas>, @utc_offset=-14400, @name="Caracas"></div>
<div>>> TimeZone['Edinburgh'].now - TzTime.now</div><div>=> Thu Jan 01 04:29:59 UTC 1970</div></div><div><br></div><div>My apologies for the false accusation :)</div><div><br></div><div>regards,</div><div>
mark</div><div><br></div><div></div></div>