The Trunk: Chronology-Core-bf.5.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Chronology-Core-bf.5.mcz

commits-2
Bert Freudenberg uploaded a new version of Chronology-Core to project The Trunk:
http://source.squeak.org/trunk/Chronology-Core-bf.5.mcz

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

Name: Chronology-Core-bf.5
Author: bf
Time: 19 March 2016, 4:19:17.403839 pm
UUID: 00a9ac14-9291-42a5-be53-027008c4aef1
Ancestors: Chronology-Core-bf.4

Re-enable the automaticTimezone preference when restoring the (previously saved) LT timezone.

=============== Diff against Chronology-Core-bf.4 ===============

Item was changed:
  ----- Method: DateAndTime class>>localOffset: (in category 'squeak protocol') -----
  localOffset: aDuration
+ "Override the local time zone (for testing). This disables the #automaticTimezone: preference"
+ self localTimeZone: (TimeZone offset: aDuration name: 'Local Time (override)' abbreviation: 'LTO').
- "Set the duration we are offset from UTC (done automatically in #now)"
- self localTimeZone: (TimeZone offset: aDuration name: 'Local Time' abbreviation: 'LT').
  !

Item was changed:
  ----- Method: DateAndTime class>>localTimeZone: (in category 'accessing') -----
  localTimeZone: aTimeZone
  "Set the local time zone"
  "
  DateAndTime localTimeZone: (TimeZone offset:  0 hours name: 'Universal Time' abbreviation: 'UTC').
  DateAndTime localTimeZone: (TimeZone offset: -8 hours name: 'Pacific Standard Time' abbreviation: 'PST').
  "
  LocalTimeZone := aTimeZone.
+ self automaticTimezone: (aTimeZone abbreviation = 'LT')!
- self automaticTimezone: false!

Item was changed:
  ----- Method: DateAndTime class>>startUp: (in category 'system startup') -----
  startUp: startingAfresh
  "Set local timezone"
+ startingAfresh & self automaticTimezone ifTrue: [self now].
- startingAfresh ifTrue: [self now].
  !