diff --git a/lib/Stats.js b/lib/Stats.js index 0de02f3af22..fcdcc0a2fc8 100644 --- a/lib/Stats.js +++ b/lib/Stats.js @@ -974,7 +974,14 @@ class Stats { } if (typeof obj.builtAt === "number") { const builtAtDate = new Date(obj.builtAt); - let timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone; + let timeZone = null; + + try { + timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone; + } catch (err) { + // disregard the RangeError + } + // Force UTC if runtime timezone could not be detected. if (!timeZone || timeZone.toLowerCase() === "etc/unknown") { timeZone = "UTC";