View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0025200 | mantisbt | administration | public | 2019-01-10 14:08 | 2019-04-17 14:47 |
Reporter | samtuke | Assigned To | atrol | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Product Version | 2.18.0 | ||||
Summary | 0025200: On the manage project version page dates are loaded in incorrect format and datepicker mangles them | ||||
Description | On the manage project version page release dates are loaded in the wrong format, and the datepicker can also not understand them. Together this results in the wrong dates being saved and valid dates being malformed. | ||||
Steps To Reproduce | Visit the page, e.g. /manage_proj_ver_edit_page.php?version_id=150 | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Did you consider the warning for |
|
@atrol No, thanks for the pointer. $g_datetime_picker_format is not defined in our config_defaults_inc.php or config_local.php files. I added it as follows after trial and error with the separte momentjs format: $g_normal_date_format = 'd-m-y H:i'; That appears to have fixed it. These don't seem like 'sane defaults'. If $g_datetime_picker_format isn't set, shouldn't it take it from $g_normal_date_format by default (or convert the format if they're incompatible)? |
|
Sure? You never ever should change config_defaults_inc.php as you might get problems when upgrading. |
|
samtuke, I assume the issue was caused by your changed config_defaults_inc.php |
|