[wp-trac] [WordPress Trac] #40657: Deprecate current_time( 'timestamp' )
WordPress Trac
noreply at wordpress.org
Thu Mar 7 09:11:43 UTC 2019
#40657: Deprecate current_time( 'timestamp' )
-------------------------+-----------------------------
Reporter: jdgrimes | Owner: SergeyBiryukov
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 5.2
Component: Date/Time | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+-----------------------------
Comment (by SergeyBiryukov):
In [changeset:"44809" 44809]:
{{{
#!CommitTicketReference repository="" revision="44809"
Date/Time: Reduce explicit local `current_time( 'timestamp' )` usage in
favor of native PHP functions.
Timestamps don't carry any timezone information, using the intended format
directly simplifies the logic and makes the code less confusing.
Props Rarst, jdgrimes.
See #40657.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40657#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list