プロジェクト

全般

プロフィール

Vote #62663

未完了

Date input fields don't respect date format settings

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
UI_10
開始日:
2008/02/15
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
32
issue_org_id:
668
author_id:
388
assigned_to_id:
1
comments:
23
status_id:
1
tracker_id:
1
plus1:
10
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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


journals

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.
--------------------------------------------------------------------------------
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
--------------------------------------------------------------------------------
this date format is confusing for normal users
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Patch #6450 solves the problem for user input in the Custom Value model. Diff has been attached to #6450.

This was a major pain point for some of my colleagues using Redmine - hopefully this fix will eliminate the issue on user input across the board for custom fields.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
The defect is in Redmine 2.4.2 too.
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
I created a jquery plugin to solve this problem:
"jQuery Binding Format":https://github.com/leandrogehlen/jquery-bindingformat
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
Leandro, can you please explain how to use your jquery plugin with standard Redmine date fields?
Have you ever integrate it to Redmine?
Thanks
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1.

We're currently upgrading from Redmine 2.4.3 to 3.4.6.stable, and it strikes me that this input date formatting problem is around for so long. So for us, it got worse:

* Our output date formatting is dd/MM/yyyy
* In 2.4.3 you get a calendar icon next to the input field. When selecting a date, it copies it in the input field in the format yyyy-MM-dd
* In 3.4.6 there is no calendar icon. The calendar shows up directly when clicking the input field. When selecting a date, it copies it in the input field in the format MM/dd/yyyy.

"yyyy-MM-dd" is still clear to us, at least it doesn't switch the month and the day.

What is more: when entering a date manually (the mask is MM/dd/yyyy), it applies a "ceiling" function to each date part. So when mistakenly typing e.g. 18, 05, 2018, meaning May 18, 2018, the 18 is converted automatically to 12, and without any warning it is set to 12/05/2018 (December 5th).

--------------------------------------------------------------------------------
Unacceptable :)
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,New,6450,Allow localized date input and correctly transform for custom date fields
relates,Closed,10560,strange validation in redmine core
relates,New,23224,Datepicker doesn't obey the user's settings format
duplicates,Closed,2273,Date inputs when editing an issue should use localised date format
duplicates,Closed,4451,Date picker to be internationalized - especially German formatting: 24.12.2009
duplicates,Closed,5316,Datetime picker
duplicates,Closed,10327,"Start date" and "due date" fields use incorrect formatting
duplicates,Closed,12179,Impossible to set due date with dot
duplicates,Closed,12478,American Date Format (mm/dd/yyyy) for Date Fields
duplicates,Closed,14857,Date localization don't take effects over Date Select fields

Admin Redmine さんがほぼ2年前に更新

  • カテゴリUI_10 にセット
  • 対象バージョンCandidate for next major release_32 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0