[wp-trac] [WordPress Trac] #34228: 'WP_Date_Query' igored hour parameter when hour = 0 and valid minute parameter
WordPress Trac
noreply at wordpress.org
Fri Oct 9 04:42:20 UTC 2015
#34228: 'WP_Date_Query' igored hour parameter when hour = 0 and valid minute
parameter
--------------------------+-----------------------------
Reporter: jim912 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34228>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list