# std.os.uefi: Fix integer overflow in Time.toEpoch\(\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/6378295b771b2e621918d20e45debf91ee114eac)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 6378295b771b2e621918d20e45debf91ee114eac

Requested commit: 6378295b771b2e621918d20e45debf91ee114eac

Commit: 6378295b771b2e621918d20e45debf91ee114eac

Tree: f2eff891f7157ce248187071bb24c0dc3115d72c

Author: Linus Groh

Committer: Linus Groh

## Message

```
std.os.uefi: Fix integer overflow in Time.toEpoch()

Instead of thinking hard about what the actual supported maximum value
for each sub-calculation is we can simply use an u64 from hours onwards.

```

## Parents

- [0367d684fccf8bf011fe8ac1a984820c824871a8](https://git.cafe/gitcafe/zig/commit/0367d684fccf8bf011fe8ac1a984820c824871a8?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/6378295b771b2e621918d20e45debf91ee114eac?format=markdown)
