Skip to content

Commit edbb6f6

Browse files
authored
Merge pull request webpack#6670 from SimenB/patch-1
Use 2-digit format for day and month in "built at" output
2 parents c54df36 + bb2320c commit edbb6f6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/Stats.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,13 @@ class Stats {
736736
if (typeof obj.builtAt === "number") {
737737
const builtAtDate = new Date(obj.builtAt);
738738
colors.normal("Built at: ");
739-
colors.normal(builtAtDate.toLocaleDateString());
739+
colors.normal(
740+
builtAtDate.toLocaleDateString({
741+
day: "2-digit",
742+
month: "2-digit",
743+
year: "numeric"
744+
})
745+
);
740746
colors.normal(" ");
741747
colors.bold(builtAtDate.toLocaleTimeString());
742748
newline();

0 commit comments

Comments
 (0)