From 395b6ba4b56a90124d898be36337bc324baa4f48 Mon Sep 17 00:00:00 2001 From: Jaiwanth Date: Tue, 1 Jun 2021 12:44:05 +0530 Subject: [PATCH] Small refactor --- src/DateUtils.ts | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/DateUtils.ts b/src/DateUtils.ts index b567337e2c..6d390e9132 100644 --- a/src/DateUtils.ts +++ b/src/DateUtils.ts @@ -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()) + ); }