This is an add-on for the Advanced Custom Fields (ACF) WordPress plugin, that allows you to add a Date and Time Picker field type. Works with ACF v3 and v4. ACF PRO 5.0+ is no longer supported, ACF PRO has its own date and time picker. Brought To You By acknowledgeme owner='soderlind' repo='acf-field-date-time-picker' total='50'. Dojo/i18n is a module the provides internationalization (i18n) features for Dojo. It also operates as a plugin for loading text resources based on a locale.
Hello,
since WP 5.3, all dates using
date_i18n()have issues (the date is moved 1 or more hours back/forth, even when WP and server times are correct).Also ACF had to change this function and replace it with
wp_date(), in their plugin.So, also in Admin Columns, dates are now incorrect (eg. backend post list).
Will you update this asap?Thank you
Hi,
FYI, more info about this can be found at the Make WordPress Core blog.
Guido
This thread helped resolved my issue of Time displaying different to my timezone settings after a whole day debugging.
Thanks @guido07111975, My issue was related to the comment “don’t change PHP time zone with date_default_timezone_set() (this one is hard requirement for correct core operation!)” in your link.- This reply was modified 11 months, 3 weeks ago by .
PHP date and wp_date give different values it seems because WordPress set time zone independently from PHP. I learned this, after discovering than date function in a logging plugin function was always two hours wrong. So, if you want to use WordPress time you may use wp_date with proper parameters.
It follows php that function date follows from php settings that can be different from WP settings
Also, I learned (too late) that is not possible to use date_default_timezone_set in wordpress plugins. See reference (https://make.wordpress.org/core/2019/09/23/date-time-improvements-wp-5-3/)- This reply was modified 9 months, 2 weeks ago by .
- This reply was modified 9 months, 2 weeks ago by .
- The topic ‘Replace date_i18n() with new wp_date()’ is closed to new replies.
The format of the dates differ from one region to another that is why we internationalize the dates.
We can internationalize the date by using the getDateInstance() method of the DateFormat class. It receives the locale object as a parameter and returns the instance of the DateFormat class.
Commonly used methods of DateFormat class for internationalizing date
There are many methods of the DateFormat class. Let's see the two methods of the DateFormat class for internationalizing the dates.

- public static DateFormat getDateInstance(int style, Locale locale) returns the instance of the DateFormat class for the specified style and locale. The style can be DEFAULT, SHORT, LONG etc.
- public String format(Date date) returns the formatted and localized date as a string.
Example of Internationalizing Date
Date_i18n Php
In this example, we are displaying the date according to the different locale such as UK, US, FRANCE etc. For this purpose we have created the printDate() method that receives Locale object as an instance. The format() method of the DateFormat class receives the Date object and returns the formatted and localized date as a string.


Date_i18n Timestamp
