Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit ae55755

Browse files
committed
change epochs from 2000 to around 1980
> 380n*365n*24n*3600n 11983680000n On windows, we treat files before such epoch as non-exist
1 parent 1c7dc56 commit ae55755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/disk_interface.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ TimeStamp TimeStampFromFileTime(const FILETIME& filetime) {
6666
uint64_t mtime = ((uint64_t)filetime.dwHighDateTime << 32) |
6767
((uint64_t)filetime.dwLowDateTime);
6868
// 1600 epoch -> 2000 epoch (subtract 400 years).
69-
TimeStamp output = (TimeStamp)mtime - 12622770400LL * (1000000000LL / 100);
69+
TimeStamp output = (TimeStamp)mtime - 11983680000LL * (1000000000LL / 100);
7070
if(output <= 0){
7171
return 0;
7272
} else {

0 commit comments

Comments
 (0)