Commit 539becb3 authored by Denis K****'s avatar Denis K**** Committed by Martijn de Wit
Browse files

Issue #3190219 by dench0, scottop, Martijn de Wit: Date interpreted wrong: 1 Jan 2017

parent efd74ae7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ class BootstrapDate extends FormElement {
        '/yyyy/i',
        '/yy/i',
      ];
      $replacement = ['n', 'm', 'j', 'd', 'o', 'y'];
      $replacement = ['n', 'm', 'j', 'd', 'Y', 'y'];
      $date_format = preg_replace($pattern, $replacement, $element['#format']);
      $element['#value'] = $new_date->format($date_format);
    }