[wp-trac] [WordPress Trac] #28698: WP_Date_Query's 'before' and 'after' arguments should support timestamps
WordPress Trac
noreply at wordpress.org
Mon Jun 30 23:15:45 UTC 2014
#28698: WP_Date_Query's 'before' and 'after' arguments should support timestamps
----------------------------------------+-----------------------------
Reporter: danielbachhuber | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Query | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+-----------------------------
Comment (by mboynes):
`strtotime()` supports timestamps using "@<stamp>" notation, like
`"@1404169843"`.
One important consideration with this patch is that there are int values
which are valid for `strtotime()`, e.g. 1200 (which would be for noon
today), which it would break.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28698#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list