From aa676a59dc6702698d1549d3c974e55e2f008034 Mon Sep 17 00:00:00 2001
From: webchick <webchick@24967.no-reply.drupal.org>
Date: Thu, 29 Nov 2012 11:19:04 -0800
Subject: [PATCH] Issue #1854274 by jibran: Fixed DateTimePlus uses SELF
 instead of self; breaks on Windows.

---
 core/lib/Drupal/Component/Datetime/DateTimePlus.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/lib/Drupal/Component/Datetime/DateTimePlus.php b/core/lib/Drupal/Component/Datetime/DateTimePlus.php
index f5c3cc79b289..283daaeb11f9 100644
--- a/core/lib/Drupal/Component/Datetime/DateTimePlus.php
+++ b/core/lib/Drupal/Component/Datetime/DateTimePlus.php
@@ -710,7 +710,7 @@ public function format($format, $settings = array()) {
 
         // If we're working with a non-gregorian calendar, indicate that.
         $calendar_type = \IntlDateFormatter::GREGORIAN;
-        if ($calendar != SELF::CALENDAR) {
+        if ($calendar != self::CALENDAR) {
           $calendar_type = \IntlDateFormatter::TRADITIONAL;
         }
 
-- 
GitLab