Browse Source

[php] Flight update date (#9734)

Joan Miquel 5 months ago
parent
commit
b58174e5ce
1 changed files with 2 additions and 2 deletions
  1. 2 2
      frameworks/PHP/flight/server.php

+ 2 - 2
frameworks/PHP/flight/server.php

@@ -36,9 +36,9 @@ class HeaderDate
 
 
     public static function init(): void
     public static function init(): void
     {
     {
-        self::$date = self::NAME.gmdate('D, d M Y H:i:s').' GMT';
+        self::$date = self::NAME . gmdate(DATE_RFC7231);
         Timer::add(1, static function () {
         Timer::add(1, static function () {
-            self::$date = self::NAME.gmdate('D, d M Y H:i:s').' GMT';
+            self::$date = self::NAME . gmdate(DATE_RFC7231);
         });
         });
     }
     }
 }
 }