Clean up date formatting per bug 14067, remove assumptions that things like
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 11 May 2008 20:22:25 +0000 (20:22 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 11 May 2008 20:22:25 +0000 (20:22 +0000)
commitf6a93e08b81d00720b95b218b09e864e9d1ac0dd
treea5390549f7d8829431e00976137262b360c0df03
parent3c9536652a3b27ec97cb2e3f046c5e98849c58a4
Clean up date formatting per bug 14067, remove assumptions that things like
20051300000000 will work. It's fine for dates-as-integers, but goes horribly
wrong when fed to $dbr->timestamp(), which calls gmmktime(). The latter function
has a bug/feature causing any 0s in the month or day field to cause a month
or day's *subtraction*. We might want to modify timestamp() to handle that, as
I can imagine any MW code would want to rely on such a feature, but that's not
this patch.

Also set a limit for Y2K38 problems, as gmmktime() doesn't like that very much either.
includes/SpecialContributions.php