com web/php: Fix another EOL date bug. Wrong values for the periods.: eol.php
| From: | Sherif Ramadan | 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-17217@lists.php.net to get a copy of this message | ||
Commit: e939201949dda8510105a4d38e01f55e3679fc4e
Author: Sherif Ramadan <googleguy@php.net> Fri, 22 Nov 2013 20:05:18 -0500
Parents: 64b7737ac48d3a9f882878ecb10679fe4fe8e4f4
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=e939201949dda8510105a4d38e01f55e3679fc4e
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...';
}