Just a bad reference to localOffset rather than the supplied offset in todayAtNanoSeconds:offset: (see below). Normally, todayAtMilliSeconds:offset: is called. The nanoSecond version is only used when a the call to nowWithOffset: results in the same tick value as the last one. This is what happens when you try to subtract tomorrow from today. Today ends up with a local offset. Changing the reference to aDuration fixes the problem. Doesn't help with the TestRunner chronology failures. I'll have a look at them.


todayAtNanoSeconds: nanoSecondsSinceMidnight offset: aDuration

        "This is usually only during system startup..."
        self waitForOffsets.

        ^ self basicNew
                        setJdn: DaysSinceEpoch 
                        seconds: (nanoSecondsSinceMidnight // 1000000000) 
                        nano: (nanoSecondsSinceMidnight  \\ 1000000000  ) 
                        offset: <b>self localOffset</b>
 
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://forum.world.st/Date-tomorrow-Date-today-0-19-00-00-tp4637024p4637947.html">Re: Date tomorrow - Date today &quot;0:19:00:00&quot;</a><br/>
Sent from the <a href="http://forum.world.st/Squeak-Dev-f45488.html">Squeak - Dev mailing list archive</a> at Nabble.com.<br/>