DateHelper::dayOfWeekName() returns untranslated name

Created on 22 June 2024, 6 months ago

Problem/Motivation

Comment for \Drupal\Core\Datetime\DateHelper::dayOfWeekName() says it returns translated string and it really make sense to return translation here. But in fact in now returns untranslated English name of the day. This change was brought by the
https://www.drupal.org/project/drupal/issues/3281557 🐛 DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated Fixed . I didn't find the related discussion, suppose it's changed by mistake.

Proposed resolution

Return the original behavior - return translation from the method.

User interface changes

No.

API changes

No.

Data model changes

Just return state to previous.

🐛 Bug report
Status

Active

Version

11.0 🔥

Component
Base 

Last updated 1 day ago

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024