Skip to content

Commit b58174e

Browse files
authored
[php] Flight update date (#9734)
1 parent 1bf0a22 commit b58174e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frameworks/PHP/flight/server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ class HeaderDate
3636

3737
public static function init(): void
3838
{
39-
self::$date = self::NAME.gmdate('D, d M Y H:i:s').' GMT';
39+
self::$date = self::NAME . gmdate(DATE_RFC7231);
4040
Timer::add(1, static function () {
41-
self::$date = self::NAME.gmdate('D, d M Y H:i:s').' GMT';
41+
self::$date = self::NAME . gmdate(DATE_RFC7231);
4242
});
4343
}
4444
}

0 commit comments

Comments
 (0)