[Fedora-suds-list] Timezone-aware Datetime objects
Jeff Ortel
jortel at redhat.com
Tue Mar 30 13:00:18 UTC 2010
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 at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/suds
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5126 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/suds/attachments/20100330/49ab64be/attachment.bin
More information about the suds
mailing list