<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">The documentation states that these are naïve datetimes representing UTC, but it is true that you can't tell by introspecting the object itself. Do you see a significant advantage to attaching an explicit timezone to them outside of being able to introspect the return value in a REPL and see that it's UTC?</div> <br> <div id="bloop_sign_1448469094574184960" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">-Paul</div></div> <br><p class="airmail_on">On November 25, 2015 at 9:57:40 AM, Erik Trauschke (<a href="mailto:erik.trauschke@gmail.com">erik.trauschke@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>I noticed that when ever we return datetime objects which come out of
<br>backend.py`_parse_asn1_time(), they don't have a tzinfo attached.
<br>
<br>Afaik, these values should always be UTC but for someone consuming
<br>just the result of not_valid_before, etc. that might not be clear. I
<br>think it should be possible to add this to _parse_asn1_time() so that
<br>we indicate that these are UTC times.
<br>
<br>I know it's a bit painful in Python <3.2 because we have to implement
<br>the tzinfo class ourself but it's also not that much code.
<br>
<br>Erik
<br>_______________________________________________
<br>Cryptography-dev mailing list
<br>Cryptography-dev@python.org
<br>https://mail.python.org/mailman/listinfo/cryptography-dev
<br></div></div></span></blockquote></body></html>