Skip to content

Commit bd7caae

Browse files
Merge pull request #1210 from andre-braga/magic
uefi: use UNSPECIFIED_TIMEZONE instead of magic number
2 parents cfd63fb + 5ee9bcc commit bd7caae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uefi/src/table/runtime.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ impl Time {
473473
/// Query the time offset in minutes from UTC, or None if using local time.
474474
#[must_use]
475475
pub const fn time_zone(&self) -> Option<i16> {
476-
if self.0.time_zone == 2047 {
476+
if self.0.time_zone == Self::UNSPECIFIED_TIMEZONE {
477477
None
478478
} else {
479479
Some(self.0.time_zone)

0 commit comments

Comments
 (0)