Opened 2 years ago
Closed 2 years ago
#17448 closed defect (bug) (fixed)
Make sure $tz is not empty in get_gmt_from_date()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.2 |
| Component: | Date/Time | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
It's possible that $tz might still be empty by default, which causes errors when posting new content.
See r17920 for where this was introduced.
Attachments (1)
Change History (5)
johnjamesjacoby — 2 years ago
comment:3
johnjamesjacoby — 2 years ago
Yep, that's what needs to happen.
My patch prevents the error, but results in the post_date and post_date_gmt being the same.
Note: See
TracTickets for help on using
tickets.

Perhaps we need to revert back and just remove the class_exists() check.