* Expiry handling is really sub-optimal here
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Fri, 18 Apr 2008 06:57:47 +0000 (06:57 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Fri, 18 Apr 2008 06:57:47 +0000 (06:57 +0000)
includes/ProtectionForm.php

index 6f57bc2..0929461 100644 (file)
@@ -54,7 +54,8 @@ class ProtectionForm {
                        } else if ( strlen($this->mTitle->mRestrictionsExpiry) == 0 ) {
                                $this->mExpiry = '';
                        } else {
-                               $this->mExpiry = wfTimestamp( TS_RFC2822, $this->mTitle->mRestrictionsExpiry );
+                               // FIXME: this format is not user friendly
+                               $this->mExpiry = wfTimestamp( TS_ISO_8601, $this->mTitle->mRestrictionsExpiry );
                        }
                }
 
@@ -170,6 +171,8 @@ class ProtectionForm {
                                return false;
                        }
 
+                       // Fixme: non-qualified absolute times are not in users specified timezone
+                       // and there isn't notice about it in the ui
                        $expiry = wfTimestamp( TS_MW, $expiry );
 
                        if ( $expiry < wfTimestampNow() ) {