Small refactor
This commit is contained in:
+13
-12
@@ -139,16 +139,17 @@ export function wantsDateSeparator(prevEventDate: Date, nextEventDate: Date): bo
|
|||||||
|
|
||||||
|
|
||||||
export function formatFullDateNoDayNoTime(date: Date) {
|
export function formatFullDateNoDayNoTime(date: Date) {
|
||||||
const dateTime = date.getFullYear() +
|
return (
|
||||||
"-" +
|
date.getFullYear() +
|
||||||
pad(date.getMonth()) +
|
"-" +
|
||||||
"-" +
|
pad(date.getMonth()) +
|
||||||
pad(date.getDate()) +
|
"-" +
|
||||||
_t(" at ") +
|
pad(date.getDate()) +
|
||||||
pad(date.getHours()) +
|
_t(" at ") +
|
||||||
"." +
|
pad(date.getHours()) +
|
||||||
pad(date.getMinutes()) +
|
"." +
|
||||||
"." +
|
pad(date.getMinutes()) +
|
||||||
pad(date.getSeconds());
|
"." +
|
||||||
return dateTime;
|
pad(date.getSeconds())
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user