Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 19, 2024
1 parent 3c38a83 commit 63fa3ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/semver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export async function bumpVersion(
}

function fmtDate(d: Date): string {
// YYMMDD-HHMMSS: 2024819-135530
// YYMMDD-HHMMSS: 20240919-140954
const date = joinNumbers([d.getFullYear(), d.getMonth() + 1, d.getDate()]);
const time = joinNumbers([d.getHours(), d.getMinutes(), d.getSeconds()]);
return `${date}-${time}`;
Expand Down

0 comments on commit 63fa3ec

Please sign in to comment.