wordpress-develop
wordpress-develop copied to clipboard
Trac 57998: Fix partial hour in current_time()
Fixes partial-hour timezone calculation in current_time() when 'timestamp' is passed. The gmt_offset can be a float/double for partial-hour timezones such as +5:30 UTC for India and Sri Lanka.
How?
- Changing the
inttype cast tofloatfor option value. - Then restoring the
inttype cast of that calculation, i.e. restoring it before changeset 55054.
Trac ticket: https://core.trac.wordpress.org/ticket/57035
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.