Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893460
PhabricatorSetupCheckTimezone.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
991 B
Referenced Files
None
Subscribers
None
PhabricatorSetupCheckTimezone.php
View Options
<?php
final
class
PhabricatorSetupCheckTimezone
extends
PhabricatorSetupCheck
{
protected
function
executeChecks
(
)
{
$timezone
=
nonempty
(
PhabricatorEnv
::
getEnvConfig
(
'phabricator.timezone'
)
,
ini_get
(
'date.timezone'
)
)
;
if
(
$timezone
)
{
return
;
}
$summary
=
pht
(
"Without a configured timezone, PHP will emit warnings when working "
.
"with dates, and dates and times may not display correctly."
)
;
$message
=
pht
(
"Your configuration fails to specify a server timezone. You can either "
.
"set the PHP configuration value 'date.timezone' or the Phabricator "
.
"configuration value 'phabricator.timezone' to specify one."
)
;
$this
->
newIssue
(
'config.timezone'
)
->
setShortName
(
pht
(
'Timezone'
)
)
->
setName
(
pht
(
'Server Timezone Not Configured'
)
)
->
setSummary
(
$summary
)
->
setMessage
(
$message
)
->
addPHPConfig
(
'date.timezone'
)
->
addPhabricatorConfig
(
'phabricator.timezone'
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 18:27 (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127419
Default Alt Text
PhabricatorSetupCheckTimezone.php (991 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment