Skip to content

Commit

Permalink
Guard against empty transitions in ZTimezone>>#resolvedTransitions
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvc committed Sep 22, 2023
1 parent 25c611b commit b49f367
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions repository/ZTimestamp-Core/ZTimezone.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -549,13 +549,15 @@ ZTimezone >> resolveUtcIndicators: flags [

{ #category : #accessing }
ZTimezone >> resolvedLocalTransitions [
self localTransitions ifEmpty: [ ^#() ].
^ self localTransitions
with: self subzonesIndex
collect: [ :transition :subzone | (ZTimestamp fromUnixTime: transition) -> subzone ]
]

{ #category : #accessing }
ZTimezone >> resolvedTransitions [
self transitions ifEmpty: [ ^#() ].
^ self transitions
with: self subzonesIndex
collect: [ :transition :subzone | (ZTimestamp fromUnixTime: transition) -> subzone ]
Expand Down

0 comments on commit b49f367

Please sign in to comment.