Message168837
I noticed this part:
+ # We have an aware datetime. Use aware datetime arithmetic to find the
+ # seconds since the epoch.
+ delta = dt - datetime.datetime(*time.gmtime(0)[:6],
+ tzinfo=datetime.timezone.utc)
+ seconds = delta.total_seconds()
Why don't you just return dt.astimezone() here? A round trip through a floating point timestamp always makes me nervous. I doubt loss of precision is a problem for the e-mail package, but who knows. |
|
Date |
User |
Action |
Args |
2012-08-22 02:04:38 | belopolsky | set | recipients:
+ belopolsky, tim.peters, barry, akuchling, doerwalter, ajaksu2, eric.araujo, r.david.murray, python-dev |
2012-08-22 02:04:38 | belopolsky | set | messageid: <1345601078.2.0.2160500782.issue665194@psf.upfronthosting.co.za> |
2012-08-22 02:04:37 | belopolsky | link | issue665194 messages |
2012-08-22 02:04:37 | belopolsky | create | |
|