Opened 6 years ago
Closed 6 years ago
#46483 closed enhancement (fixed)
Eliminate use of date_default_timezone_set() for calculations in core
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | minor | Version: | |
Component: | Date/Time | Keywords: | has-patch |
Focuses: | Cc: |
Description
Core sets PHP timezone to UTC on boot and assumes it for Date/Time operations. Which we are in process of improving to eliminate reliance on this assumption in #44491
However there are also couple places in core where it changes PHP time zone back and forth for calculations:
- in options to determine DST status
- in PHPMailer (which I assume is just inherited from upstream)
We should get rid of these, calculations should not need to rely on manipulating global PHP configuration state.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
In 45556: