Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #57683, comment 20


Ignore:
Timestamp:
03/09/2023 01:05:04 PM (3 years ago)
Author:
Rarst
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57683, comment 20

    initial v1  
    1414
    1515Given that context I see the options worked out so far are following:
    16 1. Use a DateTime object as is (we can halve the instances, by not calling mysql2date twice).
     161. Use a DateTime object with a correct time zone (we can halve the instances, by not calling mysql2date twice).
    17172. Use a DateTime object and cache a time zone information to reuse. In my experience bespoke caches increase complexity and decrease testability.
    18183. Do not use a DateTime object. Given the specific input and outputs in this case we can do that with a bit of string manipulation.