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: | Derick Rethans | Date: | Sun, 02 Dec 2018 16:50:36 +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-27468@lists.php.net to get a copy of this message | ||
Commit: 5d5f1178f6a78d481285a28de61c83f23b5aa23e
Author: Derick Rethans <github@derickrethans.nl> Sun, 2 Dec 2018 16:50:36 +0000
Parents: 3f53bae495f989a168a7cd3b176d56fd7951c06b
Branches: security-update-off-by-one
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=5d5f1178f6a78d481285a28de61c83f23b5aa23e
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(', ',