webpack 4.41.1 → 4.41.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/Stats.js +4 -7
  2. package/package.json +1 -1
package/lib/Stats.js CHANGED
@@ -974,18 +974,15 @@ class Stats {
974
974
  }
975
975
  if (typeof obj.builtAt === "number") {
976
976
  const builtAtDate = new Date(obj.builtAt);
977
- let timeZone = null;
977
+ let timeZone = undefined;
978
978
 
979
979
  try {
980
- timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
980
+ builtAtDate.toLocaleTimeString();
981
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") {
982
+ // Force UTC if runtime timezone is unsupported
987
983
  timeZone = "UTC";
988
984
  }
985
+
989
986
  colors.normal("Built at: ");
990
987
  colors.normal(
991
988
  builtAtDate.toLocaleDateString(undefined, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpack",
3
- "version": "4.41.1",
3
+ "version": "4.41.2",
4
4
  "author": "Tobias Koppers @sokra",
5
5
  "description": "Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",
6
6
  "license": "MIT",