Skip to content

Commit d5789f0

Browse files
committed
chore: fix release date in changelog config
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent 4a04c8a commit d5789f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config/changelog.config.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file Config - Changelog
2+
* @file Changelog Configuration
33
* @module config/changelog
44
* @see https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-conventionalcommits
55
* @see https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-core
@@ -317,7 +317,8 @@ sade('changelog', true)
317317

318318
// set release date
319319
context.date =
320-
key?.committerDate ?? dateformat(new Date(), 'yyyy-mm-dd', true)
320+
key?.committerDate ??
321+
dateformat(new Date().toLocaleDateString(), 'yyyy-mm-dd', true)
321322

322323
// determine patch release state
323324
if (version && semver.valid(version)) {

0 commit comments

Comments
 (0)