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
211db405
Commit
211db405
authored
Jan 12, 2015
by
alexpott
Browse files
Issue
#2403097
by sergei_brill: Update format_date docblock (incorrect @see)
parent
3ae4f118
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/includes/common.inc
View file @
211db405
...
@@ -420,7 +420,7 @@ function format_size($size, $langcode = NULL) {
...
@@ -420,7 +420,7 @@ function format_size($size, $langcode = NULL) {
* @return
* @return
* A translated date string in the requested format.
* A translated date string in the requested format.
*
*
* @see \Drupal\Co
mponent
\Datetime\DateFormatter::format()
* @see \Drupal\Co
re
\Datetime\DateFormatter::format()
*/
*/
function
format_date
(
$timestamp
,
$type
=
'medium'
,
$format
=
''
,
$timezone
=
NULL
,
$langcode
=
NULL
)
{
function
format_date
(
$timestamp
,
$type
=
'medium'
,
$format
=
''
,
$timezone
=
NULL
,
$langcode
=
NULL
)
{
return
\
Drupal
::
service
(
'date.formatter'
)
->
format
(
$timestamp
,
$type
,
$format
,
$timezone
,
$langcode
);
return
\
Drupal
::
service
(
'date.formatter'
)
->
format
(
$timestamp
,
$type
,
$format
,
$timezone
,
$langcode
);
...
...
Write
Preview
Markdown
is supported
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