1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-21 04:19:37 +02:00

import from up to date repo

This commit is contained in:
Matthew Horwood 2022-11-30 20:46:28 +00:00
parent 35f5db62f2
commit 12baf72567
86 changed files with 12080 additions and 13746 deletions

View file

@ -48,23 +48,16 @@ export const getDateTime = (): string => {
}
// Time
const p = parseTime;
let timeEl = '';
if (showTime) {
const time = `${p(now.getHours())}:${p(now.getMinutes())}:${p(
now.getSeconds()
)}`;
timeEl = time;
timeEl = `${parseTime(now.getHours())}:${parseTime(
now.getMinutes()
)}:${parseTime(now.getSeconds())}`;
}
// Separator
let separator = '';
if (!hideDate && showTime) {
separator = ' - ';
}
const separator = !hideDate && showTime ? ' · ' : '';
// Output
return `${dateEl}${separator}${timeEl}`;