From 7a0038c25a25a15b2eddc342bab917db4edb5497 Mon Sep 17 00:00:00 2001 From: workholic7228 <154970964@qq.com> Date: Thu, 11 Jan 2024 20:01:18 -0800 Subject: [PATCH] Fix visibility timezone --- dojo_plugin/utils/dojo/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dojo_plugin/utils/dojo/__init__.py b/dojo_plugin/utils/dojo/__init__.py index 4d5b469bb..61c6c5978 100644 --- a/dojo_plugin/utils/dojo/__init__.py +++ b/dojo_plugin/utils/dojo/__init__.py @@ -213,11 +213,11 @@ def visibility(cls, *args): start = None stop = None for arg in args: - print(repr(arg), flush=True) - print(repr(arg.get("visibility", {})), flush=True) start = arg.get("visibility", {}).get("start") or start stop = arg.get("visibility", {}).get("stop") or stop if start or stop: + start = start.astimezone(datetime.timezone.utc) if start else None + stop = stop.astimezone(datetime.timezone.utc) if stop else None return cls(start=start, stop=stop) _missing = object()