diff --git a/support/src/utils/time.cpp b/support/src/utils/time.cpp index 3460cfb1..968936b6 100644 --- a/support/src/utils/time.cpp +++ b/support/src/utils/time.cpp @@ -83,6 +83,6 @@ auto unix_time_to_windows_time(std::uint64_t unix_time) -> std::uint64_t { } auto windows_time_to_unix_time(std::uint64_t win_time) -> std::uint64_t { - return (win_time * WIN32_TIME_NANOS_PER_TICK) - WIN32_TIME_CONVERSION; + return (win_time - WIN32_TIME_CONVERSION) * WIN32_TIME_NANOS_PER_TICK; } } // namespace repertory::utils::time