Defect #668
Date input fields don't respect date format settings
| Status: | New | Start date: | 2008-02-15 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | Jean-Philippe Lang | % Done: | 0% | |
| Category: | UI | |||
| Target version: | Candidate for next major release | |||
| Affected version: | Resolution: |
Description
The input box next to calendar, shows always "YYYY-MM-DD" and doesn't follow the language settings.
This is very confusing at least in finnish language, because we never type it like that.
.b
Related issues
History
#1 Updated by Antti Perkiömäki over 5 years ago
I tried a little change in caldendar-fi.js file:
Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"
==>
Calendar._TT["DEF_DATE_FORMAT"] = "%d.%m.%Y"
Did not change the behaviour though :) The date format was still YYYY-MM-DD
Not really a programmer so no clue why the change didn't work. Anyways tried with several browsers so might need change to some other place to change the date format.
#2 Updated by Bastian Salmela over 5 years ago
aah.. i tried those too, and some other tricks... but best I got was calendar-widget changing the field correctly (respecting dd-mm-yyyy) when I clicked a date.. but still, everytime I am adding new issue, or editing old one, the date in field gets defaulted in wrong order.
I dont know ruby, so after hour of going through sources I just gave up :)
.b
#3 Updated by Jean-Philippe Lang over 3 years ago
- Category set to UI
#4 Updated by Filip Morávek about 3 years ago
- Assignee set to Jean-Philippe Lang
this date format is confusing for normal users
#5 Updated by Felipe Cardoso Martins about 3 years ago
I've one instance of Redmine running in my company located at Brazil, and some users (clients) is having being problems with this.
Developers, you can indicate a better solution to fix this? I have a good experience with software development, but don't know the project classes and etc...
I would like help to solve this problem.
Regards,
Felipe Cardoso Martins
felipe.cardoso.martins@gmail.com
http://www.linkedin.com/in/felipecardosomartins
+55 11 8573.6968
#6 Updated by Felipe Cardoso Martins about 3 years ago
- File app_helpers_application_helper_rb.diff
added
Jean!
In attachment has one path to fix the function "calendar_for".
Do you know how works the function "text_field"? I need modify it to present correctly data recovery from database...
Thank's!
#7 Updated by Felipe Cardoso Martins almost 3 years ago
Jean!
I see in the project the method "CustomFieldsHelper.custom_field_tag(name, custom_value)"...
What do you think about:
1. Implement in "CustomFieldsHelper.custom_field_tag" the conversion of value of text field?
2. Change all places how are using the component text_field and calendar_for to use new custom field?
You can help me with the opinion, I would like help to solve this old problem and send path to the project.
[]'s
#8 Updated by Stuart Cianos over 2 years ago
#9 Updated by Jean-Philippe Lang 6 months ago
- Subject changed from date input fields don't respect date format settings to Date input fields don't respect date format settings
- Target version set to Candidate for next major release