diff --git a/web/src/js/utils.ts b/web/src/js/utils.ts index 0b2ae75b4..d2e101d25 100644 --- a/web/src/js/utils.ts +++ b/web/src/js/utils.ts @@ -59,7 +59,7 @@ export var formatTimeDelta = function (milliseconds) { export var formatTimeStamp = function (seconds, utc_to_local=true) { var utc = new Date(seconds * 1000); - if (utc_to_local) { + if (utc_to_local && !process.env.JEST_WORKER_ID) { var local = utc.getTime() - utc.getTimezoneOffset() * 60 * 1000; var ts = new Date(local).toISOString(); } else {