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
0cda6e20
Commit
0cda6e20
authored
Jun 01, 2005
by
Steven Wittens
Browse files
-
#23734
: Replace date() with format_date() in aggregator
parent
c928f9c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/aggregator.module
View file @
0cda6e20
...
...
@@ -1097,14 +1097,14 @@ function theme_aggregator_summary_item($item) {
function
theme_aggregator_page_item
(
$item
)
{
static
$last
;
$date
=
date
(
'Ymd'
,
$item
->
timestamp
);
$date
=
format_date
(
$item
->
timestamp
,
'custom'
,
'Ymd'
);
if
(
$date
!=
$last
)
{
$last
=
$date
;
$output
.
=
'<h3>'
.
date
(
'F j, Y'
,
$item
->
timestamp
)
.
"</h3>
\n
"
;
$output
.
=
'<h3>'
.
format_date
(
$item
->
timestamp
,
'custom'
,
'F j, Y'
)
.
"</h3>
\n
"
;
}
$output
.
=
"<div class=
\"
news-item
\"
>
\n
"
;
$output
.
=
' <div class="date">'
.
date
(
'H:i'
,
$item
->
timestamp
)
.
"</div>
\n
"
;
$output
.
=
' <div class="date">'
.
format_date
(
$item
->
timestamp
,
'custom'
,
'H:i'
)
.
"</div>
\n
"
;
$output
.
=
" <div class=
\"
body
\"
>
\n
"
;
$output
.
=
' <div class="title"><a href="'
.
check_url
(
$item
->
link
)
.
'">'
.
check_plain
(
$item
->
title
)
.
"</a></div>
\n
"
;
if
(
$item
->
description
)
{
...
...
modules/aggregator/aggregator.module
View file @
0cda6e20
...
...
@@ -1097,14 +1097,14 @@ function theme_aggregator_summary_item($item) {
function
theme_aggregator_page_item
(
$item
)
{
static
$last
;
$date
=
date
(
'Ymd'
,
$item
->
timestamp
);
$date
=
format_date
(
$item
->
timestamp
,
'custom'
,
'Ymd'
);
if
(
$date
!=
$last
)
{
$last
=
$date
;
$output
.
=
'<h3>'
.
date
(
'F j, Y'
,
$item
->
timestamp
)
.
"</h3>
\n
"
;
$output
.
=
'<h3>'
.
format_date
(
$item
->
timestamp
,
'custom'
,
'F j, Y'
)
.
"</h3>
\n
"
;
}
$output
.
=
"<div class=
\"
news-item
\"
>
\n
"
;
$output
.
=
' <div class="date">'
.
date
(
'H:i'
,
$item
->
timestamp
)
.
"</div>
\n
"
;
$output
.
=
' <div class="date">'
.
format_date
(
$item
->
timestamp
,
'custom'
,
'H:i'
)
.
"</div>
\n
"
;
$output
.
=
" <div class=
\"
body
\"
>
\n
"
;
$output
.
=
' <div class="title"><a href="'
.
check_url
(
$item
->
link
)
.
'">'
.
check_plain
(
$item
->
title
)
.
"</a></div>
\n
"
;
if
(
$item
->
description
)
{
...
...
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