MantisBT: master-2.25 a500ed68

Author Committer Branch Timestamp Parent
dregad community master-2.25 2023-02-21 17:41 master b8bf4989
Affected Issues  0031836: Date conversion fails when editing a project version using a non-US date format
Changeset

Improve conversion of date strings to unix timestamps

When editing a project version, if the date format is set for a non-US
format, the strtotime() call will fail on date conversion.

This moves the conversion logic to date_strtotime() API and makes use
of the modified API function where relevant, i.e. when date string
could be user-provided.

Fixes 0031836, PR https://github.com/mantisbt/mantisbt/pull/1864

mod - bug_update.php Diff File
mod - config_defaults_inc.php Diff File
mod - core/bug_api.php Diff File
mod - core/commands/VersionAddCommand.php Diff File
mod - core/date_api.php Diff File
mod - core/version_api.php Diff File
mod - docbook/Admin_Guide/en-US/config/duedate.xml Diff File