diff --git a/rq/utils.py b/rq/utils.py index 1f8a4b1..d85235e 100644 --- a/rq/utils.py +++ b/rq/utils.py @@ -14,7 +14,7 @@ import logging import os import sys -from .compat import is_python_version +from .compat import is_python_version, as_text def gettermsize(): @@ -181,7 +181,7 @@ def utcnow(): def utcformat(dt): - return dt.strftime(u'%Y-%m-%dT%H:%M:%SZ') + return dt.strftime(as_text('%Y-%m-%dT%H:%M:%SZ')) def utcparse(string):