diff --git a/rhodecode/tests/functional/test_admin_gists.py b/rhodecode/tests/functional/test_admin_gists.py
--- a/rhodecode/tests/functional/test_admin_gists.py
+++ b/rhodecode/tests/functional/test_admin_gists.py
@@ -90,7 +90,7 @@ class TestGistsController(TestController
 
         # Expiration information should be visible
         expires_tag = '%s' % h.age_component(
-            h.time_to_datetime(g2.gist_expires))
+            h.time_to_utcdatetime(g2.gist_expires))
         response.mustcontain(expires_tag.replace('"', '\\"'))
 
     def test_index_private_gists(self, create_gist):