Skip to content

Commit

Permalink
chore: optimize format
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlewind committed Dec 6, 2023
1 parent a7797b4 commit f0d8a16
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ export function samver(): string {
date.getUTCDate(),
date.getUTCHours(),
date.getUTCMinutes(),
date.getUTCSeconds(),
];
const displayTime = timestamp
.map((_) => _.toString().padStart(2, '0'))
.join('');
return [displayTime, git.commitHash(true)].join('-');
return [displayTime, git.commitHash(true).slice(0, 7)].join('-');
}

0 comments on commit f0d8a16

Please sign in to comment.