Add timeFormatter
parent
5bf2316f26
commit
410f8a68d3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue