Skip to content

Commit

Permalink
Time calculation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cvet committed Feb 5, 2025
1 parent e33056f commit 1d22223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Common/Timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ auto Timer::DateTimeToFullTime(const DateTimeStamp& dt) noexcept -> uint64
}

// Other calculations
ft += static_cast<uint64>(dt.Day) - 1ULL + static_cast<uint64>(leap_days) * 24ULL * 60ULL * 60ULL * 1000ULL * 1000ULL;
ft += (static_cast<uint64>(dt.Day) - 1ULL + static_cast<uint64>(leap_days)) * 24ULL * 60ULL * 60ULL * 1000ULL * 1000ULL;
ft += static_cast<uint64>(dt.Hour) * 60ULL * 60ULL * 1000ULL * 1000ULL;
ft += static_cast<uint64>(dt.Minute) * 60ULL * 1000ULL * 1000ULL;
ft += static_cast<uint64>(dt.Second) * 1000ULL * 1000ULL;
Expand Down

0 comments on commit 1d22223

Please sign in to comment.