We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 465835e commit d370edaCopy full SHA for d370eda
tests/test_index.py
@@ -3,7 +3,7 @@
3
from __future__ import unicode_literals
4
5
import os
6
-import time
+import calendar
7
from random import randint
8
from decimal import Decimal
9
from datetime import datetime
@@ -111,7 +111,7 @@ def test_encode_datetime(self):
111
self.index.wait_task(task['taskID'])
112
113
res = self.index.get_object(task['objectID'])
114
- self.assertEqual(res['now'], time.mktime(value.timetuple()))
+ self.assertEqual(res['now'], calendar.timegm(value.utctimetuple()))
115
116
def test_synonyms(self):
117
task = self.index.add_object({'name': '589 Howard St., San Francisco'})
0 commit comments