mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-07 18:26:17 +00:00
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:
@@ -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}`;
|
||||
}
|
||||
Reference in New Issue
Block a user