Petr, You should use the latest STON, where Dates are now serialised with a timezone indicator.
Sven > On 16 Oct 2018, at 19:59, Petr Fischer via Pharo-users > <pharo-users@lists.pharo.org> wrote: > > > From: Petr Fischer <petr.fisc...@me.com> > Subject: STON and persisting Dates - problem > Date: 16 October 2018 at 19:59:55 GMT+2 > To: pharo-users@lists.pharo.org > > > Hello, > > if I persist Dictionary with Date keys with STON, there is a problem. > > STON serializes Dates as: Date [ '2018-10-16' ] - there is no info about > timezone. > > So if I put a key "Date now translateToUTC" into dictionary, save to STON > file, and then load again from STON file, Dictionary Date keys are restored > in local time zone, so the keys in Dictionary is different - so after > deserialize from STON file I can't find anything in Dictionary anymore. > > Should I use ZTimestamp? :) > > Thanks, pf > > >