]> git.mxchange.org Git - friendica.git/commitdiff
Simplify method name for DateTimeFormat::fix
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 7 Oct 2022 21:32:34 +0000 (17:32 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 8 Oct 2022 03:10:50 +0000 (23:10 -0400)
src/Util/DateTimeFormat.php

index 5dfb0d6d17390d954a780e38878d8ff79816dd8b..679d7fc7253b83fdacb0c0b96d5ec045d3861a57 100644 (file)
@@ -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'],