fix(lastUpdated): use author date instead of commit date (#2618)

pull/2619/head
Divyansh Singh 12 months ago committed by GitHub
parent 789dc16bb1
commit 47bf5bf991
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,7 +5,7 @@ export function getGitTimestamp(file: string) {
return new Promise<number>((resolve, reject) => {
const cwd = dirname(file)
const fileName = basename(file)
const child = spawn('git', ['log', '-1', '--pretty="%ci"', fileName], {
const child = spawn('git', ['log', '-1', '--pretty="%ai"', fileName], {
cwd
})
let output = ''

Loading…
Cancel
Save