From 73fed9df1cb143610f6963091ece442e3cd41111 Mon Sep 17 00:00:00 2001 From: Alexandr Goncharov Date: Wed, 8 Nov 2023 01:16:43 +0100 Subject: [PATCH] fix toDateTime utility --- utils/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/helpers.ts b/utils/helpers.ts index 8fc24f08..8250c12d 100644 --- a/utils/helpers.ts +++ b/utils/helpers.ts @@ -40,7 +40,7 @@ export const postData = async ({ }; export const toDateTime = (secs: number) => { - var t = new Date('1970-01-01T00:30:00Z'); // Unix epoch start. + var t = new Date(+0); // Unix epoch start. t.setSeconds(secs); return t; };