Skip to content

Commit

Permalink
Fixed issue #8687: Wrong date format displayed when browsing responses
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Feb 12, 2014
1 parent ef62b7b commit fc7e56e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/helpers/common_helper.php
Expand Up @@ -1778,12 +1778,15 @@ function getExtendedAnswer($iSurveyID, $sFieldCode, $sValue, $oLanguage)
;
} // switch
}
// debugbreak();
switch($sFieldCode)
{
case 'submitdate':
case 'startdate':
case 'datestamp':
if (trim($sValue)!='')
{
$dateformatdetails = getDateFormatDataForQID(array('date_format'=>''), $iSurveyID);
$dateformatdetails = getDateFormatDataForQID(null, $iSurveyID);
$sValue=convertDateTimeFormat($sValue,"Y-m-d H:i:s",$dateformatdetails['phpdate'].' H:i:s');
}
break;
Expand Down

0 comments on commit fc7e56e

Please sign in to comment.