From 9c29079ddf23abb178900ee1686feee09966e3fe Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 13 Feb 2018 15:46:05 -0700 Subject: [PATCH] Silence warning about time in array format by passing it to constructor --- api/src/DateTime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/DateTime.php b/api/src/DateTime.php index 7f2eaec8ba..51b2f71aca 100644 --- a/api/src/DateTime.php +++ b/api/src/DateTime.php @@ -497,7 +497,7 @@ class DateTime extends \DateTime $date = null; // If numeric, just let normal constructor do it - if(is_numeric($time)) + if(is_numeric($time) || is_array($time)) { return new DateTime($time); }