Opened 9 years ago
Closed 9 years ago
#34228 closed defect (bug) (fixed)
'WP_Date_Query' ignores hour parameter when hour = 0 and valid minute parameter
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | Query | Keywords: | has-patch |
Focuses: | Cc: |
Description
when request like below query
?year=2015&monthnum=10&day=5&hour=0&minute=3
created sql is
AND ( ( YEAR( wp_posts.post_date ) = 2015 AND MONTH( wp_posts.post_date ) = 10 AND DAYOFMONTH( wp_posts.post_date ) = 5 AND DATE_FORMAT( wp_posts.post_date, '0.%i' ) = 0.030000 ) )
0 hour parameter ignored
Attachments (2)
Change History (6)
#1
@
9 years ago
- Summary changed from 'WP_Date_Query' igored hour parameter when hour = 0 and valid minute parameter to 'WP_Date_Query' ignores hour parameter when hour = 0 and valid minute parameter
Note: See
TracTickets for help on using
tickets.
reattached fixed file