Skip to content

Commit c43b719

Browse files
kaizenccgithub-actions
and
github-actions
authored
chore: report date and not time for end of support warning (#1934)
returns `"2025-04-03" ` instead of `"2025-04-03T22:04:47.424Z"` --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0 --------- Signed-off-by: github-actions <[email protected]> Co-authored-by: github-actions <[email protected]>
1 parent fe44fa6 commit c43b719

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/support.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export async function emitSupportPolicyInformation() {
7070
if (acc.length === 0) {
7171
acc.push('', 'Other actively supported release lines include:');
7272
}
73-
acc.push(`- ${release} (planned End-of-Support date: ${date.toISOString()})`);
73+
acc.push(`- ${release} (planned End-of-Support date: ${date.toISOString().split('T')[0]})`);
7474
return acc;
7575
}, new Array<string>());
7676
if (endOfSupportDate <= now) {
@@ -85,7 +85,9 @@ export async function emitSupportPolicyInformation() {
8585
// End-of-Support within 30 days!
8686
veryVisibleMessage(
8787
chalk.bgYellow.black,
88-
`The ${RELEASE_LINE} release line of jsii will reach End-of-Support soon, on ${endOfSupportDate.toISOString()}.`,
88+
`The ${RELEASE_LINE} release line of jsii will reach End-of-Support soon, on ${
89+
endOfSupportDate.toISOString().split('T')[0]
90+
}.`,
8991
`We strongly recommend you upgrade to the current release line (${data.current}) at your earliest convenience.`,
9092
...alternatives,
9193
);

0 commit comments

Comments
 (0)