- ensure we re-create a moment instance from the cache loaded data

This commit is contained in:
Mike Penz
2023-07-12 19:11:32 +00:00
committed by GitHub
parent 3b1ae42e11
commit 99c5a385af
3 changed files with 15 additions and 1 deletions
+8
View File
@@ -51,6 +51,14 @@ export function checkExportedData(): Data | null {
}
const options: ReleaseNotesOptions = cache.options
if (options.fromTag.date) {
options.fromTag.date = moment(options.fromTag.date)
}
if (options.toTag.date) {
options.toTag.date = moment(options.toTag.date)
}
return {
diffInfo,
mergedPullRequests,