Deactivated Locale Still Sets TimeZone

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

Deactivated Locale Still Sets TimeZone

Sean P. DeNigris
Administrator
I was surprised to find that Pharo kept setting my local offset, even though I explicitly set it to UTC and then made sure Locale was disabled. Then I saw:
Locale class>>#startUp: resuming
        ...
        DateAndTime localTimeZone: self localTimeZone.
        (self activated)
                ifTrue: [

First it does some work, and then it checks to see whether it's activated! I propose to move the first line into the subsequent block, or maybe better yet - move that behavior into DateAndTime itself. Thoughts?
Cheers,
Sean