[language] use IntlDateFormatter in format_date #263

Closed
opened 2026-10-04 23:49:36 +02:00 by adam · 1 comment
Owner

Reported by mistic100 on 7 Jul 2014 10:00

in format_date we hardcode the date display format and relies on our translations of months and days

lets use IntlDateFormatter instead (PHP 5.3, need to keep the curent impl as fallback)

requirement: perhaps we will need to define the format in common.lang.php for each language (can be copied from moment.js or jqueryui datepicker)

Piwigo Bugtracker #3099

**Reported by mistic100 on 7 Jul 2014 10:00** in format_date we hardcode the date display format and relies on our translations of months and days lets use IntlDateFormatter instead (PHP 5.3, need to keep the curent impl as fallback) requirement: perhaps we will need to define the format in common.lang.php for each language (can be copied from moment.js or jqueryui datepicker) [Piwigo Bugtracker #3099](http://piwigo.org/bugs/view.php?id=3099) <!-- github-sync-id:97226821 -->
adam closed this issue 2026-10-04 23:49:36 +02:00
Author
Owner

For example in German, we should have "Donnerstag, 4. Dezember 2014" instead of "Donnerstag 4 Dezember 2014".

For example in German, we should have "Donnerstag, 4. Dezember 2014" instead of "Donnerstag 4 Dezember 2014". <!-- github-comment-id:223676852 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#263