Skip to content

Commit

Permalink
Use store's defined DATE_FORMAT for activity-log warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte committed Aug 4, 2017
1 parent b833a15 commit d9e8ea4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admin/includes/init_includes/init_errors.php
@@ -1,10 +1,10 @@
<?php
/**
* @package admin
* @copyright Copyright 2003-2016 Zen Cart Development Team
* @copyright Copyright 2003-2017 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: Author: DrByte Sun Mar 13 2016 Modified in v1.5.5 $
* @version $Id: Author: DrByte Aug 2017 Modified in v1.5.6 $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
Expand Down Expand Up @@ -199,7 +199,7 @@
if (!empty($chk_admin_log->fields['access_date'])) {
$show_admin_activity_log_link = true;
$_SESSION['reset_admin_activity_log'] = true;
$messageStack->add(WARNING_ADMIN_ACTIVITY_LOG_DATE . date('m-d-Y', strtotime($chk_admin_log->fields['access_date'])), 'caution');
$messageStack->add(WARNING_ADMIN_ACTIVITY_LOG_DATE . date(DATE_FORMAT, strtotime($chk_admin_log->fields['access_date'])), 'caution');
}
}
}
Expand Down

0 comments on commit d9e8ea4

Please sign in to comment.