Change bellow code to support translation month name

$gregorian_date = $date->format('d F Y')

new code
$gregorian_date = $this->hijriFormatManager->dateFormatter->format($date->getTimestamp(), 'custom', 'd F Y');

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ahmad smhan created an issue. See original summary.

  • ahmad smhan committed f171136b on 8.x-1.x
    Issue #3517968 by ahmad smhan: Use DateFormat to support translation...
ahmad-alyasaki’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.