From 410f8a68d38439b0f0a765ec3b6eb34df728a88a Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 1 Jun 2022 16:16:38 -0400 Subject: [PATCH] Add timeFormatter --- web/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/index.php b/web/index.php index 28363f3d0..9131c3328 100644 --- a/web/index.php +++ b/web/index.php @@ -45,12 +45,15 @@ if ( false ) { global $dateFormatter; global $dateTimeFormatter; +global $timeFormatter; $dateFormatter = new IntlDateFormatter(null, IntlDateFormatter::SHORT, IntlDateFormatter::NONE); $dateTimeFormatter = new IntlDateFormatter(null, IntlDateFormatter::SHORT, IntlDateFormatter::LONG); +$timeFormatter = new IntlDateFormatter(null, IntlDateFormatter::NONE, IntlDateFormatter::LONG); require_once('includes/config.php'); if (ZM_LOCALE_DEFAULT) { $dateFormatter = new IntlDateFormatter(ZM_LOCALE_DEFAULT, IntlDateFormatter::SHORT, IntlDateFormatter::NONE); $dateTimeFormatter = new IntlDateFormatter(ZM_LOCALE_DEFAULT, IntlDateFormatter::SHORT, IntlDateFormatter::LONG); + $timeFormatter = new IntlDateFormatter(ZM_LOCALE_DEFAULT, IntlDateFormatter::NONE, IntlDateFormatter::LONG); } if (ZM_DATE_FORMAT_PATTERN) { $dateFormatter->setPatter(ZM_DATETIME_FORMAT_PATTERN);