fix(cli): keep render filename timestamp local (#2470)

* fix(cli): keep render filename date and time local

* fix(render): share local output timestamps
This commit is contained in:
Miguel Ángel
2026-07-15 08:13:13 -04:00
committed by GitHub
parent 10b3351974
commit 017183ad66
5 changed files with 33 additions and 10 deletions
@@ -0,0 +1,7 @@
/** Format a render/job timestamp from one local calendar and clock. */
export function formatRenderOutputTimestamp(now: Date): string {
const pad = (value: number): string => String(value).padStart(2, "0");
const datePart = `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())}`;
const timePart = `${pad(now.getHours())}-${pad(now.getMinutes())}-${pad(now.getSeconds())}`;
return `${datePart}_${timePart}`;
}