backdrop-contrib / date

NOW IN BACKDROP CORE 🎉 Adds a date field.
GNU General Public License v2.0
0 stars 0 forks source link

Call to undefined function system_date_format_locale()... #7

Closed ghost closed 9 years ago

ghost commented 9 years ago

Got this message when trying to save a node with a Date field.

ghost commented 9 years ago

Looks like you just need to change

$format = system_date_format_locale($langcode, $format_type);

in date_formatter_format() to

$date_format = system_date_format_load($format_type);
$format = isset($date_format['locales'][$langcode]) ? $date_format['locales'][$langcode] : $date_format['pattern'];

as per https://api.backdropcms.org/node/41663

Graham-72 commented 9 years ago

Included in commit https://github.com/backdrop-contrib/date/commit/42100ca0e742e91c40417588c2708707c171ad44

ghost commented 9 years ago

Nice, thanks.