[wp-trac] [WordPress Trac] #48733: Problems with date after replacing date_i18n() with wp_date()
WordPress Trac
noreply at wordpress.org
Tue Nov 19 19:00:55 UTC 2019
#48733: Problems with date after replacing date_i18n() with wp_date()
---------------------------+-----------------------------
Reporter: Guido07111975 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version: 5.3
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
Hi,
I'm the author of an events plugin and have updated my plugin with the
newly core function wp_date(). I simply replaced all occurences of
date_i18n() with wp_date(). That's it. Example:
{{{#!php
wp_date( $dateformat, esc_attr( $date ) )
}}}
FYI, this format is being saved in database (date, without time):
1574121600
I'm getting complaints from (some) users about offsett, the previous day
is being returned after saving the event. When rolling back to date_i18n()
everything is being returned properly again.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48733>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list