[wp-trac] [WordPress Trac] #24730: Introduce a timezone-retrieval method
WordPress Trac
noreply at wordpress.org
Fri Jun 29 11:56:02 UTC 2018
#24730: Introduce a timezone-retrieval method
-------------------------+------------------------------
Reporter: rmccue | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+------------------------------
Comment (by Rarst):
> DateTime::setTimezone(): Can only do this for zones with ID for now
Ugh, I new there is a catch after all. Will look into it. Need to think if
producing such "incomplete" (?) time zone object on old PHP versions is
still worth it. It is, as for me...
Separate issue for formatting thing please. I think there is already one
for escaping around, note that there is not just "escaped" case, but
"escaped escaping" when slashes themselves are slashed, and so on.
I am not sure what you mean by "preventing formatting". If `date_i18n()`
doesn't process timezone then output is incorrect since `date()` will
assume UTC.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24730#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list