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