Skip to content

Commit

Permalink
Dev: Fix dropdown date with custom date format (different format than…
Browse files Browse the repository at this point in the history
… Bootstrap datepicker)
  • Loading branch information
olleharstedt committed Apr 26, 2016
1 parent d62ab03 commit e5fdd08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/helpers/surveytranslator_helper.php
Expand Up @@ -816,6 +816,7 @@ function getDateFormatDataForQID($aQidAttributes, $mThisSurvey)
$aDateFormatDetails['dateformat'] = trim($aQidAttributes['date_format']);
$aDateFormatDetails['phpdate'] = getPHPDateFromDateFormat($aDateFormatDetails['dateformat']);
$aDateFormatDetails['jsdate'] = getJSDateFromDateFormat($aDateFormatDetails['dateformat']);
$aDateFormatDetails['jsdate_original'] = $aDateFormatDetails['dateformat']; // In dropdown, this is fed to Date in Javascript, not Bootstrap
}
else
{
Expand Down

0 comments on commit e5fdd08

Please sign in to comment.