<div dir="ltr">Before this change:<div><br></div><div>TimeZone default = TimeZone default "==> false"</div><div><br></div><div>After this change:</div><div><br></div><div>TimeZone default = TimeZone default "==> true"</div><div><br></div><div>Thanks,</div><div>cbc</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 15, 2017 at 5:24 PM,  <span dir="ltr"><<a href="mailto:commits@source.squeak.org" target="_blank">commits@source.squeak.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">A new version of Chronology-Core was added to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/Chronology-Core-cbc.10.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/<wbr>inbox/Chronology-Core-cbc.10.<wbr>mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Chronology-Core-cbc.10<br>
Author: cbc<br>
Time: 15 June 2017, 5:24:03.228466 pm<br>
UUID: 89e0d1fb-ce97-1a43-aa4b-<wbr>d3c735c3bb2e<br>
Ancestors: Chronology-Core-pre.9<br>
<br>
Cache TimeZones.<br>
Also, fix comment on TimeZone class>>default.<br>
<br>
=============== Diff against Chronology-Core-pre.9 ===============<br>
<br>
Item was changed:<br>
  Object subclass: #TimeZone<br>
        instanceVariableNames: 'offset abbreviation name'<br>
+       classVariableNames: 'TimeZones'<br>
-       classVariableNames: ''<br>
        poolDictionaries: 'ChronologyConstants'<br>
        category: 'Chronology-Core'!<br>
<br>
  !TimeZone commentStamp: 'dtl 7/11/2009 15:03' prior: 0!<br>
  TimeZone is a simple class to colect the information identifying a UTC time zone.<br>
<br>
  offset                        -       Duration        - the time zone's offset from UTC<br>
  abbreviation  -       String          - the abbreviated name for the time zone.<br>
  name                  -       String          - the name of the time zone.<br>
<br>
  TimeZone class >> #timeZones returns an array of the known time zones<br>
  TimeZone class >> #default returns the default time zone (Grenwich Mean Time)<br>
  !<br>
<br>
Item was changed:<br>
  ----- Method: TimeZone class>>default (in category 'accessing') -----<br>
  default<br>
+       "Answer the default time zone - UTC"<br>
-       "Answer the default time zone - GMT"<br>
-<br>
        ^ self timeZones detect: [ :tz | tz offset = Duration zero ]!<br>
<br>
Item was added:<br>
+ ----- Method: TimeZone class>>initialize (in category 'class initialization') -----<br>
+ initialize<br>
+       TimeZones := Dictionary new.<br>
+ !<br>
<br>
Item was changed:<br>
  ----- Method: TimeZone class>>offset:name:<wbr>abbreviation: (in category 'instance creation') -----<br>
  offset: aDuration name: aName abbreviation: anAbbreviation<br>
+       ^TimeZones at: { aDuration. aName. anAbbreviation. } ifAbsentPut: [<br>
+               self new<br>
+                       offset: aDuration;<br>
+                       name: aName;<br>
+                       abbreviation: anAbbreviation;<br>
+                       yourself<br>
+               ]<br>
-<br>
-       ^ self new<br>
-               offset: aDuration;<br>
-               name: aName;<br>
-               abbreviation: anAbbreviation;<br>
-               yourself<br>
  !<br>
<br>
<br>
</blockquote></div><br></div>