mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
parent
d17842b485
commit
dd298edb81
@ -202,7 +202,7 @@ class DateFormatter
|
|||||||
public static function timeUntil($time, $timeOnly = false)
|
public static function timeUntil($time, $timeOnly = false)
|
||||||
{
|
{
|
||||||
list($type, $until, $invert) = static::diff($time);
|
list($type, $until, $invert) = static::diff($time);
|
||||||
if ($invert) {
|
if ($invert && $type === static::RELATIVE) {
|
||||||
$until = '-' . $until;
|
$until = '-' . $until;
|
||||||
}
|
}
|
||||||
if ($timeOnly) {
|
if ($timeOnly) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user