Voyage: save Date, get back DateAndTime - bug?
Hi Esteban, All, when saving an instance of *Date* within an attribute with voyage into Mongo and doing VOMongoRepository allInstancesDo: #reset. then loading the object back from database, I get an inst of *DateAndTime* in this attribute. Of course, I can "hack" by the tools you gave me :-) it but I ask myself if this is a bug or by intent. Regards Sabine -- View this message in context: http://forum.world.st/Voyage-save-Date-get-back-DateAndTime-bug-tp4703601.ht... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Hi Sabine, that's a known issue... from mongodb :) Mongo does not recognize between Date and DateAndTime, so even if you commit a Date, you will have back a DateAndTime. Only way I know to deal with that is by transforming it manually :( cheers, Esteban On Aug 14, 2013, at 11:44 AM, Sabine Knöfel <sabine.knoefel@gmail.com> wrote:
Hi Esteban, All,
when saving an instance of *Date* within an attribute with voyage into Mongo and doing
VOMongoRepository allInstancesDo: #reset.
then loading the object back from database, I get an inst of *DateAndTime* in this attribute.
Of course, I can "hack" by the tools you gave me :-) it but I ask myself if this is a bug or by intent.
Regards Sabine
-- View this message in context: http://forum.world.st/Voyage-save-Date-get-back-DateAndTime-bug-tp4703601.ht... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Hi Esteban, thanks for the quick reply, I wil hack it back. ;-) Sabine On Wed, Aug 14, 2013 at 11:50 AM, EstebanLM [via Smalltalk] < ml-node+s1294792n4703609h74@n4.nabble.com> wrote:
Hi Sabine,
that's a known issue... from mongodb :)
Mongo does not recognize between Date and DateAndTime, so even if you commit a Date, you will have back a DateAndTime. Only way I know to deal with that is by transforming it manually :(
cheers, Esteban
On Aug 14, 2013, at 11:44 AM, Sabine Knöfel <[hidden email]<http://user/SendEmail.jtp?type=node&node=4703609&i=0>> wrote:
Hi Esteban, All,
when saving an instance of *Date* within an attribute with voyage into Mongo and doing
VOMongoRepository allInstancesDo: #reset.
then loading the object back from database, I get an inst of *DateAndTime* in this attribute.
Of course, I can "hack" by the tools you gave me :-) it but I ask myself if this is a bug or by intent.
Regards Sabine
-- View this message in context: http://forum.world.st/Voyage-save-Date-get-back-DateAndTime-bug-tp4703601.ht... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
------------------------------ If you reply to this email, your message will be added to the discussion below:
http://forum.world.st/Voyage-save-Date-get-back-DateAndTime-bug-tp4703601p47... To unsubscribe from Voyage: save Date, get back DateAndTime - bug?, 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-save-Date-get-back-DateAndTime-bug-tp4703601p47... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
participants (2)
-
Esteban Lorenzano -
Sabine Knöfel