Project

General

Profile

Actions

Defect #19039

closed

Mail notification is formatting dates with changer's locale

Added by Rafael Vargas almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Category:
I18n
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Our installation default language is PT-BR but some users have EN configured as user language for their personal accounts.

The date formats are: pt-BR: "DD/MM/YYYY" and en: "MM/DD/YYYY"

When someone makes a change in the dates (start date/due date) using Redmine in EN, the email notifications for those users using PT-BR come almost completely localized with the exception of the dates that are coming in the changers locale format.

This can lead to problems with dates like 10/mar/2015 which will be formatted as 10/03/2015 for PT-BR and 03/10/2015 for EN.

The dates seem to be correctly saved in the database as opening the issue in the browser shows the dates correctly localized.

My environment is as follows:

Environment:
  Redmine version                2.6.0.stable
  Ruby version                   2.1.1-p76 (2014-02-24) [x86_64-linux]
  Rails version                  3.2.19
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.8.10
  Mercurial                      1.3.1
  Cvs                            1.12.13
  Git                            1.8.0
  Filesystem                     
Redmine plugins:
  redmine_better_gantt_chart     0.9.0

Actions

Also available in: Atom PDF