From 5ee9bccd13083c58f6ab746cbfa3406685801d32 Mon Sep 17 00:00:00 2001 From: andre-braga Date: Mon, 17 Jun 2024 17:51:36 +0000 Subject: [PATCH] uefi: use UNSPECIFIED_TIMEZONE instead of magic number --- uefi/src/table/runtime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uefi/src/table/runtime.rs b/uefi/src/table/runtime.rs index f4871245f..e61076b65 100644 --- a/uefi/src/table/runtime.rs +++ b/uefi/src/table/runtime.rs @@ -473,7 +473,7 @@ impl Time { /// Query the time offset in minutes from UTC, or None if using local time. #[must_use] pub const fn time_zone(&self) -> Option { - if self.0.time_zone == 2047 { + if self.0.time_zone == Self::UNSPECIFIED_TIMEZONE { None } else { Some(self.0.time_zone)