refactor: date utils and all calls
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
import { backupService, BackupConfig } from '../src/services/backup';
|
||||
import { backupScheduler } from '../src/services/backup-scheduler';
|
||||
import { formatDateForDisplay } from '../src/lib/date-utils';
|
||||
|
||||
interface CliOptions {
|
||||
command: string;
|
||||
@@ -92,7 +93,7 @@ OPTIONS:
|
||||
}
|
||||
|
||||
private formatDate(date: Date): string {
|
||||
return new Date(date).toLocaleString('fr-FR');
|
||||
return formatDateForDisplay(date, 'DISPLAY_LONG');
|
||||
}
|
||||
|
||||
async run(args: string[]): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user