[wp-trac] [WordPress Trac] #57035: Error in current_time() function when using timestamp and no value for gmt_offset
WordPress Trac
noreply at wordpress.org
Thu Aug 22 22:21:32 UTC 2024
#57035: Error in current_time() function when using timestamp and no value for
gmt_offset
-------------------------------------------------+-------------------------
Reporter: Nick_theGeek | Owner:
| hellofromTonya
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.7
Component: Date/Time | Version: 5.3
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests php80 dev- | Focuses:
feedback commit |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):
* keywords: has-patch has-unit-tests php80 dev-feedback changes-requested
=> has-patch has-unit-tests php80 dev-feedback commit
Comment:
The [https://github.com/WordPress/wordpress-
develop/pull/4264#issuecomment-2305462465 linked pull request] has had the
various changes applied and is good for commit.
It casts the `gmt_offset` to a float to account for partial hour time
zones, such as ACST, IST, and the casts the calculated offset in seconds
to an integer.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57035#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list