On 4/6/07, paceman <[EMAIL PROTECTED]> wrote: > > Next I tried it with cPickle: ... > >>> mydatetime > datetime.datetime(2007, 3, 3, 10, 51, 36, > tzinfo=<psycopg2.tz.FixedOffsetTimezone object at 0xb7781f4c>) > >>> import cPickle > >>> cPickle.dumps(mydatetime) > "cdatetime\ndatetime\np1\n(S'\\x07\\xd7\\x03\\x03\\n3$\\x00\\x00\ ...
I think that as long as the datetime's tzinfo is from psycopg2, it'll work, since that tzinfo was specifically written to be pickle-able. Why don't you check your codebase (including SQLAlchemy) to see if tzinfo is being assigned to some other type under other circumstances. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---