[wp-trac] [WordPress Trac] #38771: date_i18n() arguments are misleading in function and documentation
WordPress Trac
noreply at wordpress.org
Fri Mar 16 13:27:31 UTC 2018
#38771: date_i18n() arguments are misleading in function and documentation
-------------------------+-----------------------------
Reporter: Rarst | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Date/Time | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+-----------------------------
Changes (by Rarst):
* keywords: => has-patch
Comment:
I've added patch and fixed what GMT argument does at the moment, which is
pretty narrow and useless though.
While it is possible to make GMT work here universally, it would need to
wait until all ''other'' bugs in the functions are fixed and would be
messy on top of already messy implementation.
I think at this point it would make more sense to introduce a new
localisation function, based on actual Unix timestamp and feature parity
with `date()`, then deprecate `date_i18n()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38771#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list