From: Hypolite Petovan Date: Fri, 7 Oct 2022 21:32:34 +0000 (-0400) Subject: Simplify method name for DateTimeFormat::fix X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c0447ced48cc7ea5e3cf9d870358ad1aa5a5f24d;p=friendica.git Simplify method name for DateTimeFormat::fix --- diff --git a/src/Util/DateTimeFormat.php b/src/Util/DateTimeFormat.php index 5dfb0d6d17..679d7fc725 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'],