[wp-trac] [WordPress Trac] #61732: get_calendar() will use invalid dates in SQL queries
WordPress Trac
noreply at wordpress.org
Fri Mar 7 17:21:34 UTC 2025
#61732: get_calendar() will use invalid dates in SQL queries
-------------------------------------------------+-------------------------
Reporter: leedxw | Owner: pbearne
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.8
Component: Date/Time | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests changes- | Focuses:
requested |
-------------------------------------------------+-------------------------
Comment (by pbearne):
Ok I think I solved this by change `gmdate('t', $unixmonth)` to
`date('t', $unixmonth)`
As gmdate('t', $unixmonth) return 31 for month 11
But this not allowed so I am not sure how to tackle this
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61732#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list