com web/php: Fix another EOL date bug. Wrong values for the periods.: eol.php
| From: | Paul Dragoonis | Date: | Sat, 23 Nov 2013 01:05:18 +0000 |
| Subject: | com web/php: Fix another EOL date bug. Wrong values for the periods.: eol.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-22440@lists.php.net to get a copy of this message | ||
Commit: 3ba4998b7cd5a2f8253d0ab3094c4b3f47a1969b
Author: Sherif Ramadan <googleguy@php.net> Fri, 22 Nov 2013 20:05:18 -0500
Parents: 07957d7d45b7356dc0d2eb5fc226a1bb2cb1c0f7
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=3ba4998b7cd5a2f8253d0ab3094c4b3f47a1969b
Log:
Fix another EOL date bug. Wrong values for the periods.
Changed paths:
M eol.php
Diff:
diff --git a/eol.php b/eol.php
index 0b6564f..6f0cd49 100644
--- a/eol.php
+++ b/eol.php
@@ -50,9 +50,9 @@ site_header('Unsupported Branches');
$times[] = array($diff->m,'month');
}
} elseif ($diff->m) {
- $times[] = array($diff->m,'year');
+ $times[] = array($diff->m,'month');
} elseif ($diff->d) {
- $times[] = array($diff->d,'year');
+ $times[] = array($diff->d,'day');
} else {
$eolPeriod = 'moments ago...';
}