lib: Only invert relative partial times if necessary

refs #6778
This commit is contained in:
Eric Lippmann 2015-05-22 09:33:51 +02:00
parent d17842b485
commit dd298edb81
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ class DateFormatter
public static function timeUntil($time, $timeOnly = false)
{
list($type, $until, $invert) = static::diff($time);
if ($invert) {
if ($invert && $type === static::RELATIVE) {
$until = '-' . $until;
}
if ($timeOnly) {