From d20215fb9feed46308855e0b67480baacb0c3e76 Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Thu, 15 Jun 2023 17:03:02 +0200 Subject: [PATCH] Fix calc in timestampFromDatetimeLocal --- lib/dateHelpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dateHelpers.ts b/lib/dateHelpers.ts index a7074a2..311a9f9 100644 --- a/lib/dateHelpers.ts +++ b/lib/dateHelpers.ts @@ -22,7 +22,7 @@ export const timestampFromDatetimeLocal = ( case "s": return timestampMillis.divide(1000); // seconds case "ns": - return timestampMillis.divide(1000_000); // nanoseconds + return timestampMillis.multiply(1000_000); // nanoseconds default: return timestampMillis; // milliseconds }