Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
7ac0584c
Commit
7ac0584c
authored
Nov 29, 2012
by
webchick
Browse files
Issue
#1854510
by heyrocker: Remove date formatting from system_time_zones().
parent
18902b2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/system/system.module
View file @
7ac0584c
...
...
@@ -3519,7 +3519,7 @@ function system_time_zones($blank = NULL) {
// reasons and should not be used, the list is filtered by a regular
// expression.
if
(
preg_match
(
'!^((Africa|America|Antarctica|Arctic|Asia|Atlantic|Australia|Europe|Indian|Pacific)/|UTC$)!'
,
$zone
))
{
$zones
[
$zone
]
=
t
(
'@zone
: @date
'
,
array
(
'@zone'
=>
t
(
str_replace
(
'_'
,
' '
,
$zone
))
,
'@date'
=>
format_date
(
REQUEST_TIME
,
'custom'
,
config
(
'system.date'
)
->
get
(
'formats.long.pattern.php'
)
.
' O'
,
$zone
)
));
$zones
[
$zone
]
=
t
(
'@zone'
,
array
(
'@zone'
=>
t
(
str_replace
(
'_'
,
' '
,
$zone
))));
}
}
// Sort the translated time zones alphabetically.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment