Small refactor
This commit is contained in:
parent
80c0ad82fc
commit
395b6ba4b5
1 changed files with 13 additions and 12 deletions
|
@ -139,16 +139,17 @@ export function wantsDateSeparator(prevEventDate: Date, nextEventDate: Date): bo
|
|||
|
||||
|
||||
export function formatFullDateNoDayNoTime(date: Date) {
|
||||
const dateTime = date.getFullYear() +
|
||||
"-" +
|
||||
pad(date.getMonth()) +
|
||||
"-" +
|
||||
pad(date.getDate()) +
|
||||
_t(" at ") +
|
||||
pad(date.getHours()) +
|
||||
"." +
|
||||
pad(date.getMinutes()) +
|
||||
"." +
|
||||
pad(date.getSeconds());
|
||||
return dateTime;
|
||||
return (
|
||||
date.getFullYear() +
|
||||
"-" +
|
||||
pad(date.getMonth()) +
|
||||
"-" +
|
||||
pad(date.getDate()) +
|
||||
_t(" at ") +
|
||||
pad(date.getHours()) +
|
||||
"." +
|
||||
pad(date.getMinutes()) +
|
||||
"." +
|
||||
pad(date.getSeconds())
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue