Skip to content

Render the dates using current locale.#70

Open
juacas wants to merge 1 commit intomoodleou:mainfrom
juacas:fixdates
Open

Render the dates using current locale.#70
juacas wants to merge 1 commit intomoodleou:mainfrom
juacas:fixdates

Conversation

@juacas
Copy link

@juacas juacas commented Dec 17, 2025

The previous implementation renders the date as "mm/dd/yy" but many languages prefer the standard format "dd/mm/yy". Moreover, this is easier to read as a header of a timeline or a table.
This pull request, uses Moodle's standard date formatting using 'strftimedatefullshort' format string that adapts to each locale.

The previous implementation renders the date as  "mm/dd/yy" but many languages prefer the standard format "dd/mm/yy". Moreover, this is easier to read as a header of a timeline or a table.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant