From 0125c4a8d13191df93948f0d2dfb885b48c2ee8c Mon Sep 17 00:00:00 2001 From: Ian Wenneckers Date: Wed, 26 Nov 2025 13:04:56 +0100 Subject: [PATCH 1/3] feat(date): add ability to parse into local iso --- src/date/iso-date.ts | 8 +++++++- src/public-api.ts | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/date/iso-date.ts b/src/date/iso-date.ts index 1768831..d72cdad 100644 --- a/src/date/iso-date.ts +++ b/src/date/iso-date.ts @@ -1,4 +1,9 @@ -function toISOStringDate (this: Date): string { +function toISOStringDate (this: Date, isLocal: boolean = false): string { + if (isLocal) { + return `${ this.getFullYear() }-${ (this.getMonth() + 1).toString().padStart(2, "0") }-${ this.getDate().toString() + .padStart(2, "0") }`; + } + const ISO_TIME_SEPARATOR: string = "T"; /* eslint-disable-next-line @tseslint/no-non-null-assertion */ @@ -13,3 +18,4 @@ Object.defineProperty(Date.prototype, "toISOStringDate", { configurable: false, enumerable: false }); + diff --git a/src/public-api.ts b/src/public-api.ts index 37c9a28..f7cc318 100644 --- a/src/public-api.ts +++ b/src/public-api.ts @@ -17,7 +17,13 @@ declare global { } interface Date { - toISOStringDate(): string; + /** + * Returns the date in ISO-8601 format (`YYYY-MM-DD`). + * + * @param isLocal Indicates whether the date should be returned in local time. + * If omitted, the date is returned in UTC. + */ + toISOStringDate(isLocal?: boolean): string; } interface Map { From faf6b24daddadf6ce967ec5c115f2100b4b9d926 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 26 Nov 2025 14:24:11 +0100 Subject: [PATCH 2/3] docs(public-api): improve toIsoStringDate --- src/public-api.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/public-api.ts b/src/public-api.ts index f7cc318..d621e75 100644 --- a/src/public-api.ts +++ b/src/public-api.ts @@ -18,10 +18,11 @@ declare global { interface Date { /** - * Returns the date in ISO-8601 format (`YYYY-MM-DD`). + * @param isLocal Indicates whether the date should be returned in local time. If omitted, the date is returned in UTC. + * @returns date in ISO-8601 format (`YYYY-MM-DD`) * - * @param isLocal Indicates whether the date should be returned in local time. - * If omitted, the date is returned in UTC. + * @author Ian Wenneckers + * @since 1.1.0 */ toISOStringDate(isLocal?: boolean): string; } From b6224c975482d6f96bc94c05f07886d0d49533b9 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 26 Nov 2025 14:25:19 +0100 Subject: [PATCH 3/3] ci(deploy): add msteams webhook --- .github/workflows/main-deploy.yml | 1 + .github/workflows/next-deploy.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/main-deploy.yml b/.github/workflows/main-deploy.yml index fe96e9d..6ec749b 100644 --- a/.github/workflows/main-deploy.yml +++ b/.github/workflows/main-deploy.yml @@ -15,6 +15,7 @@ jobs: secrets: GH_DEPLOY_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }} NPM_ORG_OGS_GMBH_CI: ${{ secrets.NPM_ORG_OGS_GMBH_CI }} + MS_TEAMS_URL: ${{ secrets.MS_TEAMS_URL }} with: release_please_config_file: ".release-please/main-config.json" release_please_manifest_file: ".release-please/main-manifest.json" diff --git a/.github/workflows/next-deploy.yml b/.github/workflows/next-deploy.yml index 4feafbd..c684b96 100644 --- a/.github/workflows/next-deploy.yml +++ b/.github/workflows/next-deploy.yml @@ -15,6 +15,7 @@ jobs: secrets: GH_DEPLOY_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }} NPM_ORG_OGS_GMBH_CI: ${{ secrets.NPM_ORG_OGS_GMBH_CI }} + MS_TEAMS_URL: ${{ secrets.MS_TEAMS_URL }} with: release_please_config_file: ".release-please/next-config.json" release_please_manifest_file: ".release-please/next-manifest.json"