com web/php: More date format standardization: downloads.php index.php
| From: | Paul Dragoonis | Date: | Fri, 14 Mar 2014 15:01:40 +0000 |
| Subject: | com web/php: More date format standardization: downloads.php index.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-22142@lists.php.net to get a copy of this message | ||
Commit: 4ec0dc540558df5c0d4eb785e7f62c0aa1c85dc3
Author: Levi Morrison <levim@php.net> Fri, 14 Mar 2014 09:01:40 -0600
Parents: a105370e9d0e79e90bbc36aa316a7d6cd072b181
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=4ec0dc540558df5c0d4eb785e7f62c0aa1c85dc3
Log:
More date format standardization
Changed paths:
M downloads.php
M index.php
Diff:
diff --git a/downloads.php b/downloads.php
index 8d5a22b..9da8801 100644
--- a/downloads.php
+++ b/downloads.php
@@ -118,7 +118,7 @@ site_header("Downloads",
<?php foreach ($a['source'] as $rel): ?>
<li>
<?php download_link($rel['filename'], $rel['filename']); ?>
- <span class="releasedate"><?php echo $rel['date'];
?></span>
+ <span class="releasedate"><?php echo date('d M Y',
strtotime($rel['date'])); ?></span>
<span class="md5sum"><?php echo $rel['md5'];
?></span>
<?php if (isset($rel['note']) && $rel['note']): ?>
<p>
diff --git a/index.php b/index.php
index ba0f2f9..0727049 100644
--- a/index.php
+++ b/index.php
@@ -66,7 +66,7 @@ foreach($frontpage as $entry) {
$link = substr($entry["id"], 15); // Strip http://php.net/
$id = parse_url($entry["id"], PHP_URL_FRAGMENT);
$date = date_create($entry['updated']);
- $date_human = date_format($date, 'Y-m-d');
+ $date_human = date_format($date, 'd M Y');
$date_w3c = date_format($date, DATE_W3C);
$content .= <<<NEWSENTRY
<article class="newsentry">