FIX: Отображение даты инвайтов (админ-панель)

This commit is contained in:
Evg 2023-07-21 20:41:52 +03:00
parent a4d47659c6
commit f68460d4bb
3 changed files with 12 additions and 4 deletions

View file

@ -79,6 +79,14 @@ class SendEmail
$mail->SMTPSecure = 'ssl'; // PHPMailer::ENCRYPTION_SMTPS; //Enable implicit TLS encryption
$mail->Port = config('integration.smtp_port'); //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`
/* $mail->SMTPOptions = [
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
]
]; */
$mail->CharSet = 'utf-8';
//Recipients

View file

@ -16,7 +16,7 @@ class Post
'type' => 'article',
'og' => true,
'imgurl' => self::images($content),
'url' => post_slug($content['post_id'], $content['post_slug']),
'url' => post_slug((int)$content['post_id'], $content['post_slug']),
];
Request::getResources()->addBottomScript('/assets/js/share/goodshare.min.js');

View file

@ -22,11 +22,11 @@
<span class="lowercase gray-600 text-sm">
<?= $inv['invitation_email']; ?>
<sup>id<?= $inv['active_uid']; ?></sup>
<?= Html::langDate($inv['active_time']); ?>
<?= Html::langDate($inv['uid']['updated_at']); ?>
</span>
<?php else : ?>
<span class="gray-600 lowercase text-sm">
<?= $inv['invitation_email']; ?> — <?= Html::langDate($inv['add_time']); ?>
<span class="gray-600 lowercase text-sm">1
<?= $inv['invitation_email']; ?> — <?= Html::langDate($inv['uid']['created_at']); ?>
</span>
<?php endif; ?>
</span>