Skip to content

Commit 392dbb7

Browse files
author
Johan Brichau
committed
make sure symbols are used for internal lookup of timezone ids
1 parent 7f04ac6 commit 392dbb7

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
instance creation
22
id: id
33
"Return the timezone identified by id, either from cache or loading it if necessary"
4-
5-
id = #GMT ifTrue: [ ^ self gmt ].
4+
|idSymbol|
5+
idSymbol := id asSymbol.
6+
idSymbol = #GMT ifTrue: [ ^ self gmt ].
67
^ self timezones
7-
at: id
8-
ifAbsentPut: [ self readTimezoneWithId: id ]
8+
at:idSymbol
9+
ifAbsentPut: [ self readTimezoneWithId: idSymbol ]

repository/ZTimestamp.package/ZTimezone.class/methodProperties.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"fromFile:" : "JohanBrichau 06/15/2014 15:16",
1010
"fromStream:" : "SvenVanCaekenberghe 3/12/2014 11:24",
1111
"gmt" : "SvenVanCaekenberghe 3/12/2014 11:24",
12-
"id:" : "JohanBrichau 06/15/2014 15:30",
12+
"id:" : "JohanBrichau 06/16/2014 22:13",
1313
"locationForId:" : "JohanBrichau 06/15/2014 15:20",
1414
"readHeaderFrom:" : "SvenVanCaekenberghe 3/10/2014 23:53",
1515
"readTimezoneWithId:" : "SvenVanCaekenberghe 3/12/2014 14:15",

0 commit comments

Comments
 (0)