From 04b0ccfda382eed699eb9513b1f847827f18b24b Mon Sep 17 00:00:00 2001 From: Tau Date: Sun, 27 Oct 2019 07:40:28 -0400 Subject: [PATCH] Force UTC for all internal date processing --- src/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/index.ts b/src/index.ts index a9b7999..31b886c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,12 @@ +// Import environment variables from .env ASAP... + import "dotenv/config"; +// ..but globally force all date and time processing to operate in UTC. +// Do not allow this to be overridden by .env either. + +process.env.TZ = "UTC"; + import fs from "fs"; import https from "https"; import http from "http";