View Issue Details

IDProjectCategoryView StatusLast Update
0033597mantisbtbugtrackerpublic2024-02-06 02:43
Reportersandyj Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version2.26.0 
Summary0033597: Datetime picker breaks when setting normal_date_format
Description

When you define a normal date format, when going into edit either version date or due date, the datetime picker shows the year in the first decade e.g. 0006 or 0008.

I tried setting the date format to d.m.yy and the date picker works fine again, although the year is displayed twice.

Steps To Reproduce
  1. create a version within a project and/or turn on Due Date tacking

  2. create configuration option normal_date_format with value d-m-Y

  3. go to the version and click edit. Or edit an issue and attempt to update Due Date.

TagsNo tags attached.
Attached Files
2024-02-03_08-19-43.png (212,287 bytes)   
2024-02-03_08-19-43.png (212,287 bytes)   
2024-02-03_08-20-30.png (144,590 bytes)   
2024-02-03_08-20-30.png (144,590 bytes)   

Activities

sandyj

sandyj

2024-02-02 16:27

reporter   ~0068499

Last edited: 2024-02-02 16:29

maybe related to 0022558

Also a note that for systems where a normal date format was already defined before the upgrade to 2.26, the issue does not occur.

atrol

atrol

2024-02-02 18:56

developer   ~0068500

Did you set also $g_datetime_picker_format?

dregad

dregad

2024-02-03 16:40

developer   ~0068502

@sandyj please read the warning in Admin Guide, Configuration / Date section
https://www.mantisbt.org/docs/master/en-US/Admin_Guide/html-desktop/#admin.config.date

sandyj

sandyj

2024-02-04 21:18

reporter   ~0068504

thanks for the workaround @dregad and @atrol - I changed the datetime_picker_format to match the normal date format and this resolved the issue. Is there no plan to fix this?

atrol

atrol

2024-02-05 14:50

developer   ~0068510

Last edited: 2024-02-05 14:50

There is PR https://github.com/mantisbt/mantisbt/pull/1587 where @syncguru started with it.
At the moment the PR can't be merged / tested as there are conflicts with current code.

dregad

dregad

2024-02-06 02:43

developer   ~0068514

It was not merged at the time, because I felt that a better handling of incompatibilities between PHP and moment.js formats was needed, and that was never addressed.