From 21b56869679d9121309610b72b8f553e36450bc4 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Mon, 3 Mar 2014 12:55:25 -0600
Subject: [PATCH] faq: Fix last modified time not to be midnight

It was also the last-modified date of the category -- not the actual FAQ
article itself
---
 include/staff/faq-category.inc.php | 2 +-
 include/staff/faq-view.inc.php     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/staff/faq-category.inc.php b/include/staff/faq-category.inc.php
index 6885f2f58..f6f2ce4c5 100644
--- a/include/staff/faq-category.inc.php
+++ b/include/staff/faq-category.inc.php
@@ -11,7 +11,7 @@ if(!defined('OSTSTAFFINC') || !$category || !$thisstaff) die('Access Denied');
 <div>
     <strong><?php echo $category->getName() ?></strong>
     <span>(<?php echo $category->isPublic()?'Public':'Internal'; ?>)</span>
-    <time>Last updated <?php echo Format::db_daydatetime($category->getUpdateDate()); ?></time>
+    <time>Last updated <?php echo Format::db_date($category->getUpdateDate()); ?></time>
 </div>
 <div class="cat-desc">
 <?php echo Format::display($category->getDescription()); ?>
diff --git a/include/staff/faq-view.inc.php b/include/staff/faq-view.inc.php
index f505e612f..5b6c52830 100644
--- a/include/staff/faq-view.inc.php
+++ b/include/staff/faq-view.inc.php
@@ -33,7 +33,7 @@ if($thisstaff->canManageFAQ()) {
     <?php echo ($topics=$faq->getHelpTopics())?implode(', ',$topics):' '; ?>
     </div>
 </p>
-<div class="faded">&nbsp;Last updated <?php echo Format::db_daydatetime($category->getUpdateDate()); ?></div>
+<div class="faded">&nbsp;Last updated <?php echo Format::db_daydatetime($faq->getUpdateDate()); ?></div>
 <hr>
 <?php
 if($thisstaff->canManageFAQ()) {
-- 
GitLab