All my time and
date formats on posts and comments end up as stuff like %A %e %B %Y. After doing some debugging, I discovered that somehow the percentages in the
date formats are getting doubled, so that "%A %B %e%q, %Y" ends up being parsed as "%%A %%B %%e%%q, %%Y", which leads to qTranslate being unable to properly handle the
date and time format, resulting in a garbled output. The solution is as simple as adding one line at the top of the
qtrans_strftime function in qtranslate_core.php (line 408):
function qtrans_strftime($format, $date, $default = '', $before = '', $after = '') {
$format = str_replace('%%','%',$format);
(...)
Edit: Actually, it appears that the offending line is in the
qtrans_convertDateFormatToStrftimeFormat function. The percentages are getting doubled here (line 144 of qtranslate_utils.php):
$date_parameters[] = '#%#'; $strftime_parameters[] = '%%';
If you remove one of those %'s at the end, then the parsing is corrected.