diff --git a/freezegun/api.py b/freezegun/api.py index 6096896a..2e89c32e 100644 --- a/freezegun/api.py +++ b/freezegun/api.py @@ -361,7 +361,10 @@ def today(cls): @classmethod def utcnow(cls): - result = cls._time_to_freeze() or real_datetime.utcnow() + if _should_use_real_time(): + result = real_datetime.utcnow() + else: + result = cls._time_to_freeze() or real_datetime.utcnow() return datetime_to_fakedatetime(result) @staticmethod