diff --git a/test_whisper.py b/test_whisper.py index cd84fb2..33936be 100755 --- a/test_whisper.py +++ b/test_whisper.py @@ -819,7 +819,7 @@ def test_resize_with_aggregate(self): whisper.create(self.filename, retention) # insert data - now_timestamp = int((datetime.now() - datetime(1970, 1, 1)).total_seconds()) + now_timestamp = int((datetime.utcnow() - datetime(1970, 1, 1)).total_seconds()) now_timestamp -= now_timestamp % 60 # format timestamp points = [(now_timestamp - i * 60, i) for i in range(0, 60 * 24 * 2)] whisper.update_many(self.filename, points)