Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tim.plunkett’s picture

Status: Active » Needs review
FileSize
18.15 KB

Okay, here's the first pass.

dawehner’s picture

+++ b/core/modules/system/lib/Drupal/system/Form/DateFormatEditForm.phpundefined
@@ -0,0 +1,103 @@
+    $format_info = config('system.date')->get('formats.' . $date_format_id);

Well at least inject it.

tim.plunkett’s picture

tim.plunkett’s picture

FileSize
18.89 KB

That went in, this is done I think.

damiankloip’s picture

Status: Needs review » Reviewed & tested by the community
+++ b/core/modules/system/lib/Drupal/system/Form/DateFormatFormBase.phpundefined
@@ -0,0 +1,71 @@
+    $date = new DrupalDateTime();

So apparently there is already an issue to make this a service, so that's cool.

Manually tesed and reviewed. Can't find anything wrong with this.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 291689a and pushed to 8.x. Thanks!

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