com web/php: Fix off by-one error. Today (Dec 2nd), it shows 'today', where it's really the last day.: include/branches.inc
| From: | Christoph Michael Becker | Date: | Sun, 02 Dec 2018 18:34:56 +0000 |
| Subject: | com web/php: Fix off by-one error. Today (Dec 2nd), it shows 'today', where it's really the last day.: include/branches.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-27471@lists.php.net to get a copy of this message | ||
Commit: 5e802342f3b8bc3981eeb4cbb67d46b17bac97b1
Author: Derick Rethans <github@derickrethans.nl> Sun, 2 Dec 2018 16:50:36 +0000
Committer: Christoph M. Becker <cmbecker69@gmx.de> Sun, 2 Dec 2018 19:34:56 +0100
Parents: 3f53bae495f989a168a7cd3b176d56fd7951c06b
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=5e802342f3b8bc3981eeb4cbb67d46b17bac97b1
Log:
Fix off by-one error. Today (Dec 2nd), it shows 'today', where it's really the last
day.
Changed paths:
M include/branches.inc
Diff:
diff --git a/include/branches.inc b/include/branches.inc
index 2445f86..4c13321 100644
--- a/include/branches.inc
+++ b/include/branches.inc
@@ -56,7 +56,7 @@ function format_interval($from, $to) {
} elseif ($diff->d) {
$times[] = array($diff->d,'day');
} else {
- $eolPeriod = 'today';
+ $eolPeriod = 'last day';
}
if ($times) {
$eolPeriod = implode(', ',