help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] DateTime>>#asLocal is broken


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] DateTime>>#asLocal is broken
Date: Thu, 19 May 2011 20:37:37 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10

On 05/19/2011 05:10 PM, Holger Hans Peter Freyther wrote:
DateTime now/asLocal is broken right now on a 32 bit system. The Time
timezonBias: is fed with 3483216000, which does not fit...is_c_int_64().

It is is_c_int_64 that is broken. I cut-and-pasted is_c_int_32 but of course a 64-bit integer can be also fit in 32, 40, 48, or 56 bits when represented as a LargeInteger on 32-bit systems.

Thanks for the report!

Could you explain the intention of the timezoneBias?

It gives the timezone offset of the current locale for that time. So for example if the time zone bias of UTC time 2011-06-17T00:00:00+00:00 is +02:00 in your locale, the equivalent local time will be 2011-06-17T02:00:00+02:00.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]