Commit:    a0c92b9c7e92d15bf2903c70eaa16da813188665
Author:    Levi Morrison <[email protected]>         Fri, 14 Mar 2014 09:01:40 -0600
Parents:   116fb105d69f3b23a845cde4d91e6f3f84f52076
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=a0c92b9c7e92d15bf2903c70eaa16da813188665

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">


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to