[wp-trac] [WordPress Trac] #53294: Adding filter hook to current_time() function
WordPress Trac
noreply at wordpress.org
Sun May 30 08:12:50 UTC 2021
#53294: Adding filter hook to current_time() function
-------------------------+------------------------------
Reporter: wpvar | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: accessibility
-------------------------+------------------------------
Comment (by Rarst):
`current_time()` is only retained for backwards compatibility, by now it's
just a thin wrapper around native PHP with unfortunate logic branch
producing the problematic "WordPress timestamp" (summed with a time zone
offset) case.
In current WordPress code this function ''shouldn't even be used'', so
introducing new functionality to it is not on the table.
Adjustments to date output in WordPress are usually handled on
localization level, such as `wp_date()` function/filter.
However I am not sure what you want counts as localization or more
fundamental adjustment to whole date calculation?
Open to see some example to understand the needs better, please. :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53294#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list