View Issue Details

IDProjectCategoryView StatusLast Update
0022704mantisbtlocalizationpublic2023-07-10 17:08
Reporterjdgrieco Assigned Todregad  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Product Version2.3.0 
Summary0022704: Due date not saved when non english date format
Description

We customize some date format in config_inc.php to use european/brazilian portuguese date format:

$g_default_timezone = 'America/Sao_Paulo';
$g_short_date_format = 'd/m/Y';
$g_normal_date_format = $g_short_date_format . ' H:i';
$g_complete_date_format = $g_normal_date_format . ' T';
$g_datetime_picker_format = 'DD/MM/YYYY';

And enable Due Date:
$g_due_date_update_threshold = MANAGER;
$g_due_date_view_threshold = VIEWER;

When we try to update a issue with due date filled, that field is not saved.

I realize that is related to the strtotime function with non-English date format and we corrected using DateTime::createFromFormat() and getTimestamp() method (see https://github.com/mantisbt/mantisbt/pull/1090)

Is this better way to do that?

I think this issue exists in other date fields as well

TagsNo tags attached.

Relationships

duplicate of 0031836 closeddregad Date conversion fails when editing a project version using a non-US date format 
related to 0023257 closeddregad Due Date saves wrong values 

Activities

dregad

dregad

2023-06-25 11:33

developer   ~0067862

I believe this should be fixed in 2.25.6, see 0031836. If not, feel free to reopen the issue.