From 4a69b7f92a3fda00bc93ae5ff957336b24a40e7b Mon Sep 17 00:00:00 2001 From: Miauwkeru Date: Tue, 10 Oct 2023 13:18:55 +0200 Subject: [PATCH] Update flow/record/fieldtypes/__init__.py Co-authored-by: Yun Zheng Hu --- flow/record/fieldtypes/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flow/record/fieldtypes/__init__.py b/flow/record/fieldtypes/__init__.py index 568253d..fe31d2d 100644 --- a/flow/record/fieldtypes/__init__.py +++ b/flow/record/fieldtypes/__init__.py @@ -61,7 +61,8 @@ def flow_record_tz(*, default_tz: str = "UTC") -> Optional[ZoneInfo | UTC]: return None if not HAS_ZONE_INFO: - warnings.warn("Cannot use FLOW_RECORD_TZ due to missing zoneinfo module, defaulting to 'UTC'.") + if tz != "UTC": + warnings.warn("Cannot use FLOW_RECORD_TZ due to missing zoneinfo module, defaulting to 'UTC'.") return UTC try: