View Revisions: Issue #23578

Summary 0023578: Document need for consistency between "normal" and "datepicker" date formats
Revision 2017-11-06 06:31 by dregad
Description

Original issue summary: Odd display in project version date after upgrading from 1.1.2 -> 1.3.12 -> 2.7.1

In my installation, after following the upgrade path noted above, if I attempt to edit the Date Order value, I notice that it is formatted in an odd way, and looking at the HTML, the date picker seems to be using the value attribute as a literal value for the data-picker-format to format.

<input id="proj-version-date-order" name="date_order" class="datetimepicker input-sm" data-picker-locale="en-us" data-picker-format="Y-MM-DD HH:mm" size="16" value="14 12 2017 09:30" style="" type="text">

My configuration contains the following:

$g_short_date_format      = "d/m/Y";
$g_normal_date_format     = "d m Y H:i";
$g_complete_date_format   = "d m Y H:i T";
#$g_datetime_picker_format = "D MMM Y H:mm";

$g_datetime_picker_format is commented out because it causes further problems.

Revision 2017-11-02 03:51 by naib
Description

In my installation, after following the upgrade path noted above, if I attempt to edit the Date Order value, I notice that it is formatted in an odd way, and looking at the HTML, the date picker seems to be using the value attribute as a literal value for the data-picker-format to format.

<input id="proj-version-date-order" name="date_order" class="datetimepicker input-sm" data-picker-locale="en-us" data-picker-format="Y-MM-DD HH:mm" size="16" value="14 12 2017 09:30" style="" type="text">

My configuration contains the following:

$g_short_date_format      = "d/m/Y";
$g_normal_date_format     = "d m Y H:i";
$g_complete_date_format   = "d m Y H:i T";
#$g_datetime_picker_format = "D MMM Y H:mm";

$g_datetime_picker_format is commented out because it causes further problems.