Skip to content

Commit 7de55c8

Browse files
author
Connor Clark
committed
Use builtAt time instead of current time for stats logging
1 parent 56d22e9 commit 7de55c8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎lib/Stats.js‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,14 @@ class Stats {
617617
colors.normal("ms");
618618
newline();
619619
}
620+
if(typeof obj.builtAt === "number") {
621+
const now = (new Date(obj.builtAt)).toString().split(" ");
622+
colors.normal("Built at: ");
623+
colors.normal(`${now[0]} ${now[1]} ${now[2]} ${now[3]} `);
624+
colors.bold(now[4]);
625+
colors.normal(now[6] ? ` ${now[5]} ${now[6]}` : ` ${now[5]}`);
626+
newline();
627+
}
620628
if(obj.env) {
621629
colors.normal("Environment (--env): ");
622630
colors.bold(JSON.stringify(obj.env, null, 2));

0 commit comments

Comments
 (0)