Add support for configurable timestamp format

This commit is contained in:
Marko Korhonen 2023-11-23 18:04:42 +02:00
parent aee473b93b
commit b76700923d
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
5 changed files with 16 additions and 8 deletions

View file

@ -3,8 +3,6 @@ import { Duration } from 'dayjs/plugin/duration.js';
import Language from './types/Language';
import { MessageKey, message } from './i18n';
export const formatTimestamp = (timestamp: Dayjs): string => timestamp.format('YYYY-MM-DD HH:mm');
export const formatTime = (time: Dayjs): string => time.format('HH:mm');
export const formatDuration =