summaryrefslogtreecommitdiffstats
path: root/openstack
diff options
context:
space:
mode:
Diffstat (limited to 'openstack')
-rw-r--r--openstack/common/timeutils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/openstack/common/timeutils.py b/openstack/common/timeutils.py
index a7b2ce3..5eeaf70 100644
--- a/openstack/common/timeutils.py
+++ b/openstack/common/timeutils.py
@@ -19,6 +19,7 @@
Time related utilities and helper functions.
"""
+import calendar
import datetime
import time
@@ -74,7 +75,7 @@ def is_older_than(before, seconds):
def utcnow_ts():
"""Timestamp version of our utcnow function."""
- return time.mktime(utcnow().timetuple())
+ return calendar.timegm(utcnow().timetuple())
def utcnow():