Skip to content

Commit

Permalink
gh-878: FAR sets nanosecond filetime incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Oct 25, 2024
1 parent 0210b96 commit dc62eff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion far/platform.chrono.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ namespace os::chrono
return false;

UtcTime = nt_clock::from_filetime(FileUtcTime);
UtcTime += LocalTime.Hectonanoseconds % 1000 * 1_hns;
UtcTime += hectonanoseconds{ LocalTime.Hectonanoseconds } % 1ms;
return true;
}

Expand Down

0 comments on commit dc62eff

Please sign in to comment.