Skip to content

Commit

Permalink
Unify date formatting. (#1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmantysalo committed Dec 15, 2020
1 parent 15b7555 commit 0bf5e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/checkintegrity.php
Expand Up @@ -941,7 +941,7 @@ protected function _checkintegrity()
$iDay = (int) substr($sDateTime, 6, 2);
$iHour = (int) substr($sDateTime, 8, 2);
$iMinute = (int) substr($sDateTime, 10, 2);
$sDate = date('D, d M Y h:i a', mktime($iHour, $iMinute, 0, $iMonth, $iDay, $iYear));
$sDate = (string) date('Y-m-d H:i:s', (int) mktime($iHour, $iMinute, 0, $iMonth, $iDay, $iYear));
$sQuery = 'SELECT count(*) as recordcount FROM '.$sTableName;

$aFirstRow = Yii::app()->db->createCommand($sQuery)->queryRow();
Expand Down

0 comments on commit 0bf5e91

Please sign in to comment.