Add support for configurable timestamp format
This commit is contained in:
parent
aee473b93b
commit
b76700923d
5 changed files with 16 additions and 8 deletions
|
@ -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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue