diff options
Diffstat (limited to 'application/Utils.php')
-rw-r--r-- | application/Utils.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/application/Utils.php b/application/Utils.php index 4e97cdda..72c90049 100644 --- a/application/Utils.php +++ b/application/Utils.php | |||
@@ -294,15 +294,15 @@ function normalize_spaces($string) | |||
294 | * Requires php-intl to display international datetimes, | 294 | * Requires php-intl to display international datetimes, |
295 | * otherwise default format '%c' will be returned. | 295 | * otherwise default format '%c' will be returned. |
296 | * | 296 | * |
297 | * @param DateTime $date to format. | 297 | * @param DateTimeInterface $date to format. |
298 | * @param bool $time Displays time if true. | 298 | * @param bool $time Displays time if true. |
299 | * @param bool $intl Use international format if true. | 299 | * @param bool $intl Use international format if true. |
300 | * | 300 | * |
301 | * @return bool|string Formatted date, or false if the input is invalid. | 301 | * @return bool|string Formatted date, or false if the input is invalid. |
302 | */ | 302 | */ |
303 | function format_date($date, $time = true, $intl = true) | 303 | function format_date($date, $time = true, $intl = true) |
304 | { | 304 | { |
305 | if (! $date instanceof DateTime) { | 305 | if (! $date instanceof DateTimeInterface) { |
306 | return false; | 306 | return false; |
307 | } | 307 | } |
308 | 308 | ||