Commit e1d4b414 authored by Dries's avatar Dries

- Patch #588218 by Dave Reid: use PHP5 date constants.

parent 9e638424
......@@ -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.
......
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment