Try fixing SMS purchases

This commit is contained in:
nikolark committed 2015-05-31 16:55:43 +02:00
1 parent 46a2c11398
commit 0d4510c30d
1 file changed
+3
+3
View File
@@ -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);
}