diff options
Diffstat (limited to 'localwebsite/classes/E3372.php')
-rw-r--r-- | localwebsite/classes/E3372.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/localwebsite/classes/E3372.php b/localwebsite/classes/E3372.php index 538d387..9f21d02 100644 --- a/localwebsite/classes/E3372.php +++ b/localwebsite/classes/E3372.php @@ -176,8 +176,10 @@ class E3372 $messages = []; foreach ($xml->Messages->Message as $message) { + $dt = DateTime::createFromFormat("Y-m-d H:i:s", (string)$message->Date); $messages[] = [ 'date' => (string)$message->Date, + 'timestamp' => $dt->getTimestamp(), 'phone' => (string)$message->Phone, 'content' => (string)$message->Content ]; |