Patch #6450

Allow localized date input and correctly transform for custom date fields

Added by Stuart Cianos over 8 years ago. Updated almost 7 years ago.

Status:NewStart date:2010-09-21
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Custom fields
Target version:-

Description

Patch allows users to manipulate custom date fields using their local format.

  • Adds a library routine to the I18n extensions. The routine provides for the parsing of a user entered date into a Date object.
  • The custom value model has been upated to correctly account for the user's date setting (if available). If not, defaults to YYYY-MM-DD.

This allows users to enter their dates in their localized format (as defined by setting.date_format), and have it correctly transformed to YYYY-MM-DD. If the localized setting is not available, falls back to YYYY-MM-DD for input.

This partially fixes defect #668 as it applies to custom fields. This was a major pain point for our users, so hopefully will solve a lot of problems experienced elsewhere.

scvmc_redmine_668p1_custom_field_dates.diff Magnifier (2.08 KB) Stuart Cianos, 2010-09-21 03:13


Related issues

Related to Redmine - Defect #668: Date input fields don't respect date format settings New 2008-02-15

History

#1 Updated by Toshi MARUYAMA about 8 years ago

  • Category set to Custom fields

#2 Updated by Frank Helk over 7 years ago

Any plan to put it on the roadmap ?

#3 Updated by Artur M almost 7 years ago

Frank Helk wrote:

Any plan to put it on the roadmap ?

+1

Also available in: Atom PDF