diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-05-17 11:06:39 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-07-23 21:19:21 +0200 |
commit | 69e29ff65ef56b886748c58ba5b037cf217c4a1d (patch) | |
tree | ab27ad9100bc72cb3c9417b623776bc8cfa6d421 /application/Utils.php | |
parent | 60ae241251b753fc052e50ebd95277dfcb074cb0 (diff) | |
download | Shaarli-69e29ff65ef56b886748c58ba5b037cf217c4a1d.tar.gz Shaarli-69e29ff65ef56b886748c58ba5b037cf217c4a1d.tar.zst Shaarli-69e29ff65ef56b886748c58ba5b037cf217c4a1d.zip |
Process daily page through Slim controller
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 | ||