Allow contributed modules to alter the format_date() function result.

Created on 4 June 2011, almost 14 years ago
Updated 31 January 2023, about 2 years ago

Drupal doesn't support other calendars, Solar Calendar(Gregorian calendar)
here is some works for supporting it using a module. However, it needs a custom hook to be added, which means editing common.inc

Drupal did a great job supporting RTL languages and include many translations. Now we need to step it up in 8.x
I basically added the custom hoon into common.inc
If you have a better way please do inform me.
PS: this hook can be used for all kinds of Calendar systems, more info http://drupal.org/project/calendar_systems

Feature request
Status

Needs work

Version

10.1

Component
Base 

Last updated about 6 hours ago

Created by

🇬🇧United Kingdom Hadi Farnoud

Live updates comments and jobs are added and updated live.
  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

  • Needs framework manager review

    It is used to alert the framework manager core committer(s) that an issue significantly impacts (or has the potential to impact) multiple subsystems or represents a significant change or addition in architecture or public APIs, and their signoff is needed (see the governance policy draft for more information). If an issue significantly impacts only one subsystem, use Needs subsystem maintainer review instead, and make sure the issue component is set to the correct subsystem.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom catch

    #151 added hook documentation, but #156 doesn't.

    I'm also a bit confused why we need an alter hook as opposed to a module or site adding its own date formats. Is it for when someone is using a hard-coded custom format instead of a configured date format? But in that case, an issue against the contrib module might be better.

    Tagging for issue summary update for the above.

Production build 0.71.5 2024