From c0447ced48cc7ea5e3cf9d870358ad1aa5a5f24d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 7 Oct 2022 17:32:34 -0400 Subject: [PATCH] Simplify method name for DateTimeFormat::fix --- src/Util/DateTimeFormat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Util/DateTimeFormat.php b/src/Util/DateTimeFormat.php index 5dfb0d6d1..679d7fc72 100644 --- a/src/Util/DateTimeFormat.php +++ b/src/Util/DateTimeFormat.php @@ -135,7 +135,7 @@ class DateTimeFormat $s = 'now'; } - $s = self::fixDateFormat($s); + $s = self::fix($s); /* * Slight hackish adjustment so that 'zero' datetime actually returns what is intended @@ -181,7 +181,7 @@ class DateTimeFormat * @param string $dateString * @return string */ - private static function fixDateFormat(string $dateString): string + public static function fix(string $dateString): string { $patterns = [ ['#(\w+), (\d+/\d+/\d+) - (\d+:\d+)#', '$1, $2 $3'],