mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
parent
603dcbde92
commit
f028c74a5e
@ -82,33 +82,33 @@ class DateFormatter
|
||||
/**
|
||||
* Format date
|
||||
*
|
||||
* @param int|float time
|
||||
* @param int|float $date
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function formatDate($time)
|
||||
public static function formatDate($date)
|
||||
{
|
||||
$fmt = new IntlDateFormatter(null, IntlDateFormatter::SHORT, IntlDateFormatter::NONE);
|
||||
return $fmt->format((float) $time);
|
||||
return $fmt->format((float) $date);
|
||||
}
|
||||
|
||||
/**
|
||||
* Format date and time
|
||||
*
|
||||
* @param int|float time
|
||||
* @param int|float $dateTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function formatDateTime($time)
|
||||
public static function formatDateTime($dateTime)
|
||||
{
|
||||
$fmt = new IntlDateFormatter(null, IntlDateFormatter::SHORT, IntlDateFormatter::SHORT);
|
||||
return $fmt->format((float) $time);
|
||||
return $fmt->format((float) $dateTime);
|
||||
}
|
||||
|
||||
/**
|
||||
* Format time
|
||||
*
|
||||
* @param int|float time
|
||||
* @param int|float $time
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user