プロジェクト

全般

プロフィール

Vote #75501

未完了

Date format is incorrect

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

ステータス:
Needs feedback
優先度:
通常
担当者:
-
カテゴリ:
Roadmap_22
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
22
version_id:
0
issue_org_id:
17698
author_id:
18437
assigned_to_id:
0
comments:
6
status_id:
10
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
84
ステータス-->[Needs feedback]

説明

I recently upgraded to 2.5.2 and ran into an issue when setting the end date for a Roadmap.

The error I got was:

Date is not a valid date.

After more investigation, I noticed that the date picket inserts the date in the following format:
08/18/2014

It should however be saved as:
2014-08-18

My guess is that this is in the datepicker itself, and that it tries to autodetect depending on your locale etc, so it might not be showing up to all users.

The current workaround is to manually enter the date format in the required format.

My system:

  • Chrome 36.0.1985.143 (Official Build 287914)
  • Language: US EN
  • OS X 10.9.4

journals

I cannot reproduce.
Redmine uses 'yy-mm-dd' format.

* source:tags/2.5.2/app/views/versions/_form.html.erb#L9
* source:tags/2.5.2/app/helpers/application_helper.rb#L1159

I think plugin or browser causes problem.
--------------------------------------------------------------------------------
I can also reproduce the same problem.
The datepicker does render the chosen date in the right format, the problem actually occurs when loading the form.
I guess the date is loaded from the database in the wrong format.
I set redmine database datestyle set to 'ISO,MDY', could there be a wrong setting on the client side ?
--------------------------------------------------------------------------------
Have the same issue. Redmine version is 3.0.1
When saving the Issue, redmine complains about invalid date format.
Browser is Firefox 36. Language setting is German.

{{thumbnail(redmine.png, size=200, title=Screenshot)}}
--------------------------------------------------------------------------------
> I set redmine database datestyle set to 'ISO,MDY', could there be a wrong setting on the client side ?

The answer is "no, but..." it seems redmine needs to be restarted after fixing the database datestyle. In my setup (redmine 2.6.1) the dates form inputs are still loaded with the previous datestyle until I restart redmine.

I believe it might help to mention that in the wiki http://www.redmine.org/projects/redmine/wiki/RedmineInstall#Supported-database-back-ends.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Redmine is unusable with this bug. Could somebody fix it quick in dev?
--------------------------------------------------------------------------------


related_issues

relates,Needs feedback,20244,Upgrade from 2.6 to 3.0 (Stable) :: Is not a valid date by all Date fields

Admin Redmine さんが約2年前に更新

  • カテゴリRoadmap_22 にセット

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

いいね!0
いいね!0