Permalink
Browse files

Adding pytz for UTC handling, because I'm lazy.

  • Loading branch information...
1 parent f768916 commit d093d8d09d7a8b6748a91f7391a6b5afe0061315 @gtaylor committed Nov 5, 2012
Showing with 4 additions and 2 deletions.
  1. +1 −0 requirements.txt
  2. +2 −1 route53/util.py
  3. +1 −1 setup.py
View
1 requirements.txt
@@ -1,3 +1,4 @@
requests==0.14.1
+pytz
nose
lxml
View
3 route53/util.py
@@ -3,10 +3,11 @@
"""
import datetime
+import pytz
from lxml import etree
# This can be used as a tzinfo arg to the datetime functions/methods.
-UTC_TIMEZONE = datetime.timezone(datetime.timedelta(hours=0), 'UTC')
+UTC_TIMEZONE = pytz.utc
def parse_iso_8601_time_str(time_str):
"""
View
2 setup.py
@@ -30,5 +30,5 @@
long_description=LONG_DESCRIPTION,
platforms=['any'],
classifiers=CLASSIFIERS,
- install_requires=['requests==0.14.1', 'lxml'],
+ install_requires=['requests==0.14.1', 'lxml', 'pytz'],
)

0 comments on commit d093d8d

Please sign in to comment.