Skip to content

Commit

Permalink
Fix upload date calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Deflaktor committed Jun 27, 2024
1 parent 07ea344 commit bdeeb9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/getboards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function getBoards(): MapDescriptorExtended[] {
} else {
// get upload date
try {
const command = `git log --follow --format=%at -- ".${path}"`
const command = `git log --follow --find-renames=0.9 --format=%at -- ".${path}"`
const output = execSync(command, { encoding: 'utf-8' });
const dates = output.trim().split('\n');
board.uploadDate = (+dates[dates.length - 1])*1000;
Expand Down

0 comments on commit bdeeb9b

Please sign in to comment.