wordpress-develop icon indicating copy to clipboard operation
wordpress-develop copied to clipboard

Trac 57998: Fix partial hour in current_time()

Open hellofromtonya opened this issue 3 years ago • 0 comments

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 int type cast to float for option value.
  • Then restoring the int type 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.

hellofromtonya avatar Mar 28 '23 12:03 hellofromtonya