We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab8a13f commit 3863e14Copy full SHA for 3863e14
vanilla/applications/vanilla/views/discussion/discussion.php
@@ -4,6 +4,8 @@
4
* @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
5
*/
6
7
+use Vanilla\Formatting\DateTimeFormatter;
8
+
9
if (!defined('APPLICATION')) {
10
exit();
11
}
@@ -51,7 +53,8 @@
51
53
</div>
52
54
<div class="Meta DiscussionMeta">
55
<span class="MItem DateCreated">
- <?php echo Gdn_Format::date($Discussion->DateInserted, 'html'); ?>
56
+ <?php echo Gdn::getContainer()->get(DateTimeFormatter::class)->formatDate($Discussion->DateInserted, true,
57
+ DateTimeFormatter::FORCE_FULL_FORMAT); ?>
58
</span>
59
<?php
60
echo dateUpdated($Discussion, ['<span class="MItem">', '</span>']);
0 commit comments