mirror of https://github.com/vector-im/riot-web
Small refactor
parent
80c0ad82fc
commit
395b6ba4b5
|
@ -139,7 +139,8 @@ export function wantsDateSeparator(prevEventDate: Date, nextEventDate: Date): bo
|
|||
|
||||
|
||||
export function formatFullDateNoDayNoTime(date: Date) {
|
||||
const dateTime = date.getFullYear() +
|
||||
return (
|
||||
date.getFullYear() +
|
||||
"-" +
|
||||
pad(date.getMonth()) +
|
||||
"-" +
|
||||
|
@ -149,6 +150,6 @@ export function formatFullDateNoDayNoTime(date: Date) {
|
|||
"." +
|
||||
pad(date.getMinutes()) +
|
||||
"." +
|
||||
pad(date.getSeconds());
|
||||
return dateTime;
|
||||
pad(date.getSeconds())
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue