Include timezone in metadata validUntil value and use UTC time
authorRob Crittenden <rcritten@redhat.com>
Thu, 16 Jul 2015 18:04:56 +0000 (14:04 -0400)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Fri, 17 Jul 2015 14:22:33 +0000 (16:22 +0200)
commit16422cfd77e080ba1c1f2cb8559620d0c200e0b9
tree8cb8690ec3948463f3c080e22d1a058cdd312ef3
parent07ec779defce9b0fecf4da8c726d1b492c147626
Include timezone in metadata validUntil value and use UTC time

The python datetime module doesn't append the timezone in its
isoformat() output, so add a Z indicating that the time is
UTC time. Also generate the output using utcnow() rather than
now() so the times line up.

https://fedorahosted.org/ipsilon/ticket/137

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
ipsilon/tools/saml2metadata.py