X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/447b6c8847cbe8f52970ae097e7b676d8302aed0..aa96b5703ca8df1df113ac165b0d756c03517435:/tasklib/tests.py diff --git a/tasklib/tests.py b/tasklib/tests.py index 3a3f25d..eb19948 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -3,6 +3,7 @@ import datetime import itertools import json +import pytz import six import shutil import tempfile @@ -532,7 +533,8 @@ class TaskFromHookTest(TasklibTest): def test_export_data(self): t = Task(self.tw, description="test task", - project="Home", due=datetime.datetime(2015,1,1,23,23,23)) + project="Home", + due=pytz.utc.localize(datetime.datetime(2015,1,1,23,23,23))) # Check that the output is a permutation of: # {"project":"Home","description":"test task","due":"20150101232323Z"}