Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
304
Merge Requests
304
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
e1d4b414
Commit
e1d4b414
authored
Sep 25, 2009
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#588218
by Dave Reid: use PHP5 date constants.
parent
9e638424
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
modules/aggregator/aggregator.fetcher.inc
modules/aggregator/aggregator.fetcher.inc
+1
-1
modules/aggregator/aggregator.pages.inc
modules/aggregator/aggregator.pages.inc
+1
-1
No files found.
modules/aggregator/aggregator.fetcher.inc
View file @
e1d4b414
...
...
@@ -28,7 +28,7 @@ function aggregator_aggregator_fetch($feed) {
$headers
[
'If-None-Match'
]
=
$feed
->
etag
;
}
if
(
$feed
->
modified
)
{
$headers
[
'If-Modified-Since'
]
=
gmdate
(
'D, d M Y H:i:s'
,
$feed
->
modified
)
.
' GMT'
;
$headers
[
'If-Modified-Since'
]
=
gmdate
(
DATE_RFC1123
,
$feed
->
modified
)
;
}
// Request feed.
...
...
modules/aggregator/aggregator.pages.inc
View file @
e1d4b414
...
...
@@ -435,7 +435,7 @@ function theme_aggregator_page_opml($feeds) {
$output
.
=
"<opml version=
\"
1.1
\"
>
\n
"
;
$output
.
=
"<head>
\n
"
;
$output
.
=
'<title>'
.
check_plain
(
variable_get
(
'site_name'
,
'Drupal'
))
.
"</title>
\n
"
;
$output
.
=
'<dateModified>'
.
gmdate
(
'r'
)
.
"</dateModified>
\n
"
;
$output
.
=
'<dateModified>'
.
gmdate
(
DATE_RFC2822
,
REQUEST_TIME
)
.
"</dateModified>
\n
"
;
$output
.
=
"</head>
\n
"
;
$output
.
=
"<body>
\n
"
;
foreach
(
$feeds
as
$feed
)
{
...
...
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