MantisBT: master-2.25 17d9999c

Author Committer Branch Timestamp Parent
dregad dregad master-2.25 2023-01-04 12:40 master-2.25 dbafafa9
Changeset

Improve date_strtotime()

Following the logic introduced in dbafafa9d98c9cd1dfe3642b5dcbb0a5ef925f6e,
the function now relies on DateTimeImmutable instead of strtotime() to
convert the string to a Unix timestamp.

It starts the conversion attempt by using $g_normal_date_format, and if
that fails falls back to PHP Supported Date and Time Formats.

mod - core/date_api.php Diff File