Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/check/PhabricatorTimezoneSetupCheck.php
Show All 34 Lines | protected function executeChecks() { | ||||
} | } | ||||
$summary = pht( | $summary = pht( | ||||
'Without a configured timezone, PHP will emit warnings when working '. | 'Without a configured timezone, PHP will emit warnings when working '. | ||||
'with dates, and dates and times may not display correctly.'); | 'with dates, and dates and times may not display correctly.'); | ||||
$message = pht( | $message = pht( | ||||
"Your configuration fails to specify a server timezone. You can either ". | "Your configuration fails to specify a server timezone. You can either ". | ||||
"set the PHP configuration value '%s' or the Phabricator ". | "set the PHP configuration value '%s' or the %s configuration ". | ||||
"configuration value '%s' to specify one.", | "value '%s' to specify one.", | ||||
'date.timezone', | 'date.timezone', | ||||
PlatformSymbols::getPlatformServerName(), | |||||
'phabricator.timezone'); | 'phabricator.timezone'); | ||||
$this | $this | ||||
->newIssue('config.timezone') | ->newIssue('config.timezone') | ||||
->setShortName(pht('Timezone')) | ->setShortName(pht('Timezone')) | ||||
->setName(pht('Server Timezone Not Configured')) | ->setName(pht('Server Timezone Not Configured')) | ||||
->setSummary($summary) | ->setSummary($summary) | ||||
->setMessage($message) | ->setMessage($message) | ||||
->addPHPConfig('date.timezone') | ->addPHPConfig('date.timezone') | ||||
->addPhabricatorConfig('phabricator.timezone'); | ->addPhabricatorConfig('phabricator.timezone'); | ||||
} | } | ||||
} | } |