Force UTC for all internal date processing

This commit is contained in:
Tau
2019-10-27 07:40:28 -04:00
parent 82bd9ad7bb
commit 04b0ccfda3

View File

@@ -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";