From 0d4510c30d170ea93c5f5afe4aaa0ef0226a410f Mon Sep 17 00:00:00 2001 From: Nikolai R Kristiansen Date: Sun, 31 May 2015 16:55:43 +0200 Subject: [PATCH] Try fixing SMS purchases --- inside/functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inside/functions.php b/inside/functions.php index c526be7..3df5100 100644 --- a/inside/functions.php +++ b/inside/functions.php @@ -1719,6 +1719,9 @@ function clean_date($date) { } // MySQL TIMESTAMP Y-m-d H:i:s function clean_timestamp($date) { + if($date instanceof DateTime) { + return $date; // already cleaned, bail + } // returns a DateTime object return date_create_from_format('Y-m-d H:i:s', $date); }