]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/DateTimeFormat.php
Merge pull request #11279 from annando/show-bcc
[friendica.git] / src / Util / DateTimeFormat.php
index 9374ec836007b3aa4664e80cdf9dc1e44c991745..41cd16d2f41464bc692a63963b6109ba1e37dee1 100644 (file)
@@ -52,7 +52,7 @@ class DateTimeFormat
         * @return string
         * @throws Exception
         */
-       public static function utc($time, $format = self::MYSQL)
+       public static function utc(string $time, string $format = self::MYSQL): string
        {
                return self::convert($time, 'UTC', 'UTC', $format);
        }
@@ -102,7 +102,7 @@ class DateTimeFormat
         * @return string
         * @throws Exception
         */
-       public static function utcNow($format = self::MYSQL)
+       public static function utcNow(string $format = self::MYSQL): string
        {
                return self::utc('now', $format);
        }