summaryrefslogtreecommitdiff
path: root/server/szurubooru/tests/api/test_post_retrieving.py
diff options
context:
space:
mode:
authorrr- <rr-@sakuya.pl>2016-07-03 14:46:15 +0200
committerrr- <rr-@sakuya.pl>2016-07-03 14:46:28 +0200
commitac23067fdfd6289e537ec10d82e3828736ea7a79 (patch)
tree3b2dcee718d138c618115ddf64d968b561a53590 /server/szurubooru/tests/api/test_post_retrieving.py
parent1f413763bdd010da6b5c03aa13489231fbc9b6cd (diff)
server/general: use UTC time stamps
Diffstat (limited to 'server/szurubooru/tests/api/test_post_retrieving.py')
-rw-r--r--server/szurubooru/tests/api/test_post_retrieving.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/szurubooru/tests/api/test_post_retrieving.py b/server/szurubooru/tests/api/test_post_retrieving.py
index 1474e62..d62d32f 100644
--- a/server/szurubooru/tests/api/test_post_retrieving.py
+++ b/server/szurubooru/tests/api/test_post_retrieving.py
@@ -43,7 +43,7 @@ def test_using_special_tokens(
post1 = test_ctx.post_factory(id=1)
post2 = test_ctx.post_factory(id=2)
post1.favorited_by = [db.PostFavorite(
- user=auth_user, time=datetime.datetime.now())]
+ user=auth_user, time=datetime.datetime.utcnow())]
db.session.add_all([post1, post2, auth_user])
db.session.flush()
result = test_ctx.list_api.get(