Hi Hilaire, it is interesting to see your posts and having similar topics as me when starting to use voyage. I ended up with saving ZTimestamps. But I will think about storing strings too, because this is more readable when having direct look into mongo. There was a discussion in slack a few days ago (February, 21st) about saving Dates in voyage. Regards Sabine 2017-03-04 11:21 GMT+01:00 HilaireFernandes [via Smalltalk] < ml-node+s1294792n4937262h17@n4.nabble.com>:
Concerning this problem, one option I found is to get far away of the Voyage/Mongo Date/DateAndTime representation/conversion and stick to string, not really efficience, but well...
mongoBirthday <mongoDescription> ^ VOToOneDescription new attributeName: 'birthday'; accessor: (MAPluggableAccessor read: [:person | person birthday ifNotNil: [person birthday yyyymmdd]] write: [:person :string |string ifNotNil: [person birthday: string asDate]]); yourself
Le 03/03/2017 à 21:12, Hilaire a écrit :
Not sure it is related to this: http://forum.world.st/Possible-bug-with-Voyage-Mongo-date-tt4735597.html
-- Dr. Geo http://drgeo.eu
------------------------------ If you reply to this email, your message will be added to the discussion below: http://forum.world.st/Voyage-and-Date-tp4937235p4937262.html To start a new topic under Pharo Smalltalk Users, email ml-node+s1294792n1310670h65@n4.nabble.com To unsubscribe from Pharo Smalltalk Users, click here <http://forum.world.st/template/NamlServlet.jtp?macro=unsubscribe_by_code&nod...> . NAML <http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant...>
-- View this message in context: http://forum.world.st/Voyage-and-Date-tp4937235p4937269.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.