Hello, I was digging some more and found a ticket with similar problem: http://code.djangoproject.com/ticket/8412
it's basically the same, so I think the reason of the problem may be related to the locales. I use czech (cs) locale in the satchmo app, the server's locale is however en_US. it occurs in all json, xml, yaml exports so I suspect the problem is introduced prior the actual serialization. I use django 1.1 with psycopg2 on ubuntu 8.04. The values that DON't get serialized are (as read from psql): 2009-07-24 12:33:50.604706 2009-07-24 14:56:36.931752 2009-07-24 15:02:33.129594 values serialized correctly: 2009-07-24 11:42:18.225204 2009-07-24 12:50:37.146825 there's no visible pattern in datetimes that could lead to problems. I'll try to go further, but can this be reason to reopen that ticket to django? Ales On Sep 23, 10:13 am, Newt <[email protected]> wrote: > Hello, > > when I try to serialize carts some of the dates get thrown away. > > I use django 1.1 with satchmo 8.1 (adjusted to work). > > Here's how it looks in XML dump, see cart id 3... nothing's there and > clearly in the database all the carts have their creation date > present. > > <object pk="2" model="shop.cart"> > <field to="sites.site" name="site" rel="ManyToOneRel">1</field> > <field type="CharField" name="desc"><None></None></field> > <field type="DateTimeField" name="date_time_created">2009-07-24 > 11:42:18</field> > <field to="contact.contact" name="customer" > rel="ManyToOneRel"><None></None></field> > </object> > <object pk="3" model="shop.cart"> > <field to="sites.site" name="site" rel="ManyToOneRel">1</field> > <field type="CharField" name="desc"><None></None></field> > <field type="DateTimeField" name="date_time_created"></field> > <field to="contact.contact" name="customer" > rel="ManyToOneRel"><None></None></field> > </object> > <object pk="4" model="shop.cart"> > <field to="sites.site" name="site" rel="ManyToOneRel">1</field> > <field type="CharField" name="desc"><None></None></field> > <field type="DateTimeField" name="date_time_created">2009-07-24 > 12:50:37</field> > <field to="contact.contact" name="customer" > rel="ManyToOneRel"><None></None></field> > </object> > > With the JSON: > > { > "pk": 2, > "model": "shop.cart", > "fields": { > "date_time_created": "2009-07-24 11:42:18", > "customer": null, > "site": 1, > "desc": null > } > }, > { > "pk": 3, > "model": "shop.cart", > "fields": { > "date_time_created": null, > "customer": null, > "site": 1, > "desc": null > } > }, > { > "pk": 4, > "model": "shop.cart", > "fields": { > "date_time_created": "2009-07-24 12:50:37", > "customer": null, > "site": 1, > "desc": null > } > }, > > I don't know where the problem could be, if it's django's, satchmo's > or my problem. :( > > Thanks for any insight, > > Ales --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en -~----------~----~----~----~------~----~------~--~---
