View Issue Details

IDProjectCategoryView StatusLast Update
0014589mantisbtattachmentspublic2012-08-13 10:35
Reporterbenvbull Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status confirmedResolutionopen 
Product Version1.2.11 
Summary0014589: Language problem with dates
Description

When a user sets an other language than English in its prefereces the dates of the attachments in tickets is not translated.

For exemple when language is set on 'French' you can find this type of date : 2012-Jul-06 16:14.

TagsNo tags attached.

Activities

dregad

dregad

2012-08-13 10:35

developer   ~0032553

This is due to the fact that MantisBT internally uses the PHP date() function [1], which does not support locales. As a consequence, all text-based elements (e.g. months, weekdays) are displayed in English (or, I suppose, whatever language PHP was compiled in).

As a workaround, I suggest you revert your date formats in config_inc.php to their default values. For example, $g_normal_date_format = 'Y-m-d H:i'; note the lowercase 'm', so month is displayed as a number.

[1] http://www.php.net/manual/en/function.date.php