From 6df7b80f1e66ed2fa5ed526799509af307702f86 Mon Sep 17 00:00:00 2001 From: ci <61233757+MaxAake@users.noreply.github.com> Date: Tue, 5 Aug 2025 09:28:11 +0200 Subject: [PATCH 1/2] Update temporal-types.ts --- packages/core/src/temporal-types.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/src/temporal-types.ts b/packages/core/src/temporal-types.ts index ee2445a37..e2ae73362 100644 --- a/packages/core/src/temporal-types.ts +++ b/packages/core/src/temporal-types.ts @@ -366,8 +366,7 @@ export class Date { * Create a {@link Date} object from the given standard JavaScript `Date`. * Hour, minute, second and millisecond components of the given date are ignored. * - * NOTE: the function {@link toStandardDate} and {@link fromStandardDate} are not inverses of one another. {@link fromStandardDate} takes the Day, Month and Year in local time from the supplied JavaScript Date object, while {@link toStandardDate} creates a new JavaScript Date object at midnight UTC. This incongruity will be rectified in 6.0 - * If your timezone has a negative offset from UTC, creating a JavaScript Date at midnight UTC and converting it with {@link fromStandardDate} will result in a Date for the day before. + * NOTE: the function {@link toStandardDate} and {@link fromStandardDate} are not inverses of one another. {@link fromStandardDate} takes the Day, Month and Year in local time from the supplied JavaScript Date object, while {@link toStandardDate} creates a new JavaScript Date object at midnight UTC. * * @param {global.Date} standardDate - The standard JavaScript date to convert. * @return {Date} New Date. From f85417ec7ca8a2558927b10ee099e20340ef4ee3 Mon Sep 17 00:00:00 2001 From: ci <61233757+MaxAake@users.noreply.github.com> Date: Tue, 5 Aug 2025 09:35:33 +0200 Subject: [PATCH 2/2] Update temporal-types.ts --- packages/neo4j-driver-deno/lib/core/temporal-types.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/neo4j-driver-deno/lib/core/temporal-types.ts b/packages/neo4j-driver-deno/lib/core/temporal-types.ts index 8e2d91704..93b289767 100644 --- a/packages/neo4j-driver-deno/lib/core/temporal-types.ts +++ b/packages/neo4j-driver-deno/lib/core/temporal-types.ts @@ -366,8 +366,7 @@ export class Date { * Create a {@link Date} object from the given standard JavaScript `Date`. * Hour, minute, second and millisecond components of the given date are ignored. * - * NOTE: the function {@link toStandardDate} and {@link fromStandardDate} are not inverses of one another. {@link fromStandardDate} takes the Day, Month and Year in local time from the supplied JavaScript Date object, while {@link toStandardDate} creates a new JavaScript Date object at midnight UTC. This incongruity will be rectified in 6.0 - * If your timezone has a negative offset from UTC, creating a JavaScript Date at midnight UTC and converting it with {@link fromStandardDate} will result in a Date for the day before. + * NOTE: the function {@link toStandardDate} and {@link fromStandardDate} are not inverses of one another. {@link fromStandardDate} takes the Day, Month and Year in local time from the supplied JavaScript Date object, while {@link toStandardDate} creates a new JavaScript Date object at midnight UTC. * * @param {global.Date} standardDate - The standard JavaScript date to convert. * @return {Date} New Date.