Opened 11 years ago
Closed 11 years ago
#28698 closed enhancement (invalid)
WP_Date_Query's 'before' and 'after' arguments should support timestamps
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Query | Keywords: | |
Focuses: | Cc: |
Description
It's silly they don't.
Patch really should have unit tests, but that's blocked in part by #25775
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
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.