summaryrefslogtreecommitdiff
path: root/localwebsite/classes/E3372.php
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-05-26 03:14:50 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-05-26 21:51:43 +0300
commitc3ed2483ea508141431be74f29f7c209271897cd (patch)
tree9f7a416ab433ffc9bd245d1dd382f350a4e61efc /localwebsite/classes/E3372.php
parent997c6da6c40c11ec0bc6cc749f78deca8dd95db1 (diff)
cron: vk sms checker
Diffstat (limited to 'localwebsite/classes/E3372.php')
-rw-r--r--localwebsite/classes/E3372.php2
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
];