[squeak-dev] DirectoryEntryFile>>modificationTime (etc) UTC handling broken

David T. Lewis lewis at mail.msen.com
Mon Nov 9 15:48:17 UTC 2020


On Sun, Nov 08, 2020 at 10:42:16PM -0800, Eliot Miranda wrote:
> 
> OK, it's done in the latest VM sources.  Make a new VM, set the image
> header flag via e.g.
> 
>     Smalltalk vmParameterAt: 48 put: ((Smalltalk vmParameterAt: 48) bitOr:
> 128)
> 
> and now times from both the FilePlugin and the FileAttributesPlugin are in
> UTC seconds from the epoch.
> 
> Backwards compatibility is maintained.  Images without the bit set will get
> local times from the File plugins.  Rum the image on an older VM and times
> will always be local, but the flag bit should be preserved, so is can be
> saved on an older VM, but when run on the newer, if the flag was set, times
> should be delivered in UTC.
> 
> _,,,^..^,,,_
> best, Eliot

Cool!
Dave



More information about the Squeak-dev mailing list