Bug#276 Make date format comply with RFC1123 and RFC2822
authorJens Frank <jeluf@users.mediawiki.org>
Sat, 22 Jan 2005 09:02:17 +0000 (09:02 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Sat, 22 Jan 2005 09:02:17 +0000 (09:02 +0000)
includes/GlobalFunctions.php

index 143bb96..567954b 100644 (file)
@@ -1042,7 +1042,7 @@ function wfTimestamp($outputtype=TS_UNIX,$ts=0) {
        case TS_DB:
                return gmdate( 'Y-m-d H:i:s', $uts );
        case TS_RFC2822:
-               return gmdate( "D, j M Y H:i:s", $uts ) . ' GMT';
+               return gmdate( "D, d M Y H:i:s", $uts ) . ' GMT';
        default:
                wfDebugDieBacktrace( 'wfTimestamp() called with illegal output type.');
        }