Hey Daniel,
Not sure I follow. Suds converts received xs:datetime to a python datetime object that
has been adjusted to the local timezone. When sending a datetime, it is sent with TZ
offset. Are you suggesting a suds /option/ that would return the xs:datetime in UTC
instead of the local TZ? Or, an options for suds to return a datetime object with tz_info
set?
Thanks,
Jeff
On 03/29/2010 02:52 AM, Daniel Rodriguez wrote:
Hi Jeff et al,
I was wondering what you and others think about always returning
timezone-aware datetime objects. The default timezone would be UTC (GMT).
If the user of the library knows that the default timezone for an object
is not UTC he can then use "replace" to change the timezone without
changing the fields.
I personally would see it as positive, since I find terrible to rebuild
a datetime object just to make the conversion from naive to timezone-aware.
Best regards
Daniel
_______________________________________________
suds mailing list
suds(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/suds