Skip to content

Commit 37ff424

Browse files
authored
Pass undefined as locale
1 parent 068ad7f commit 37ff424

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
@@ -748,7 +748,13 @@ class Stats {
748748
if (typeof obj.builtAt === "number") {
749749
const builtAtDate = new Date(obj.builtAt);
750750
colors.normal("Built at: ");
751-
colors.normal(builtAtDate.toLocaleDateString());
751+
colors.normal(
752+
builtAtDate.toLocaleDateString(undefined, {
753+
day: "2-digit",
754+
month: "2-digit",
755+
year: "numeric"
756+
})
757+
);
752758
colors.normal(" ");
753759
colors.bold(builtAtDate.toLocaleTimeString());
754760
newline();

0 commit comments

Comments
 (0)