STON and persisting Dates - problem
Oct. 16, 2018
5:59 p.m.
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
2845
Age (days ago)
2845
Last active (days ago)
0 comments
1 participants
participants (1)
-
Petr Fischer