Skip to content

Commit

Permalink
Fixed issue #8405: Date/time doesn't work correctly
Browse files Browse the repository at this point in the history
Dev Partial fix
  • Loading branch information
c-schmitz committed Nov 25, 2013
1 parent f86b567 commit bae81e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/surveytranslator_helper.php
Expand Up @@ -741,7 +741,7 @@ function getPHPDateFromDateFormat($sDateformat)
function getJSDateFromDateFormat($sDateformat)
{
// The only difference from dateformat is that Jsdate does not support truncated years
return str_replace(array('yyyy', 'yy', 'MM','M'), array('yy','y','NN','NN'), $sDateformat);
return str_replace(array('yy', 'MM','M'), array('y','NN','NN'), $sDateformat);
}


Expand Down

0 comments on commit bae81e5

Please sign in to comment.