Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
uefi: use UNSPECIFIED_TIMEZONE instead of magic number
  • Loading branch information
andre-braga committed Jun 17, 2024
commit 5ee9bccd13083c58f6ab746cbfa3406685801d32
2 changes: 1 addition & 1 deletion uefi/src/table/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<i16> {
if self.0.time_zone == 2047 {
if self.0.time_zone == Self::UNSPECIFIED_TIMEZONE {
None
} else {
Some(self.0.time_zone)
Expand Down