diff --git a/package.json b/package.json index 351001c..d93216a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ztimson/utils", - "version": "0.25.14", + "version": "0.25.15", "description": "Utility library", "author": "Zak Timson", "license": "MIT", diff --git a/src/files.ts b/src/files.ts index e5be79a..585034b 100644 --- a/src/files.ts +++ b/src/files.ts @@ -77,7 +77,7 @@ export function fileText(file: any): Promise { */ export function timestampFilename(name?: string, date: Date | number | string = new Date()) { if(typeof date == 'number' || typeof date == 'string') date = new Date(date); - const timestamp = formatDate('YYYY-MM-DD_HH:mm:ss', date); + const timestamp = formatDate('YYYY-MM-DD_HH-mm', date); return name ? name.replace('{{TIMESTAMP}}', timestamp) : timestamp; }