Skip to content

Commit

Permalink
fix(File utils): Use modified time not created time of file.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrseanryan committed Dec 3, 2018
1 parent d7b7104 commit 02b4af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/FileUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export namespace FileUtils {
}

// fallback:
const fileCreatedDate = fs.statSync(filepath).ctime;
const fileCreatedDate = fs.statSync(filepath).mtime;
return SimpleDate.fromDate(fileCreatedDate);
}

Expand Down

0 comments on commit 02b4af2

Please sign in to comment.