We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42407cb commit f523293Copy full SHA for f523293
lib/Stats.js
@@ -974,18 +974,15 @@ class Stats {
974
}
975
if (typeof obj.builtAt === "number") {
976
const builtAtDate = new Date(obj.builtAt);
977
- let timeZone = null;
+ let timeZone;
978
979
try {
980
- timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
+ builtAtDate.toLocaleTimeString();
981
} catch (err) {
982
- // disregard the RangeError
983
- }
984
-
985
- // Force UTC if runtime timezone could not be detected.
986
- if (!timeZone || timeZone.toLowerCase() === "etc/unknown") {
+ // Force UTC if runtime timezone is unsupported
987
timeZone = "UTC";
988
+
989
colors.normal("Built at: ");
990
colors.normal(
991
builtAtDate.toLocaleDateString(undefined, {
0 commit comments