Problem/Motivation

In \Drupal\recurring_events\Plugin\views\field\EventSeriesStartDate the date is formatted using \Drupal\Core\Datetime\DrupalDateTime::format() method. This is fine, but in my project, I had to add a decorator to the date formatter service and always make some tiny little changes to the formatted date.

One of the examples is using Chicago style month abbreviations: Jan., Feb., Mar., Apr., May, June, July, Aug., Sept., Oct., Nov., and Dec. Using a PHP format, this is hard to achieve, so I want to apply the same format everywhere.

Proposed resolution

Use date formatted service to format the date in \Drupal\recurring_events\Plugin\views\field\EventSeriesStartDate class.

Remaining tasks

Review, commit.

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

Matroskeen created an issue. See original summary.

matroskeen’s picture

Status: Active » Needs review
owenbush’s picture

Thank you for the issue and the MR. Do you think this has applications elsewhere in the module? Or just for the Event Series Start Date?

  • owenbush committed 2c4a6d8 on 2.0.x authored by Matroskeen
    Issue #3283128 by Matroskeen, owenbush: Use date.formatter service to...

  • owenbush committed d827cc0 on 8.x-1.x authored by Matroskeen
    Issue #3283128 by Matroskeen, owenbush: Use date.formatter service to...
owenbush’s picture

Thank you for this, I've merged it into the latest dev releases.

owenbush’s picture

Status: Needs review » Fixed

Forgot to change the status to fixed.

Status: Fixed » Closed (fixed)

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