[squeak-dev] The Inbox: Chronology-Core-ul.21.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Dec 26 00:55:35 UTC 2018

Levente Uzonyi uploaded a new version of Chronology-Core to project The Inbox:

==================== Summary ====================

Name: Chronology-Core-ul.21
Author: ul
Time: 26 December 2018, 1:48:40.220196 am
UUID: 2e6f6ce2-d0ec-41a0-b27c-88c642e5afc9
Ancestors: Chronology-Core-dtl.20

- fix: do not subtract the offset twice while evaluating DateAndTime >> #setJdn:seconds:nano:localOffsetSeconds:
- use 0 for seconds in DateAndTime >> #midnight, because the offset will not be subtracted from the passed value

=============== Diff against Chronology-Core-dtl.20 ===============

Item was changed:
  ----- Method: DateAndTime>>midnight (in category 'squeak protocol') -----
  	"Answer a DateAndTime starting at midnight of the same timezone offset as the receiver."
  	^ self class basicNew
  		setJdn: self julianDayNumber
+ 		seconds: 0
- 		seconds: localOffsetSeconds
  		nano: 0
  		localOffsetSeconds: localOffsetSeconds.!

Item was changed:
  ----- Method: DateAndTime>>setJdn:seconds:nano:localOffsetSeconds: (in category 'private') -----
  setJdn: jdn seconds: s nano: n localOffsetSeconds: offset
  	localOffsetSeconds := offset.
  	utcMicroseconds := self
  				microsecondsFromDay: jdn
+ 				seconds: s
- 				seconds: s - offset
  				nanos: n
  				offset: offset!

More information about the Squeak-dev mailing list