Fixes bug 8558 (Special:Imagelist) as well as other pages (i.e. Special:Unusedimages)
image
* (bug 8582) Allow thumbnailing when imagesize has a space.
* (bug 8716) Change math_inputhash and math_outputhash to byte for Postgres
+* (bug 8558) Correct display of timestamps on some pages when using Postgres
Support protocols other than HTTP in LinkFilter
*/
function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false) {
$this->load();
+
+ ## Account for non-integer timestamps
+ if (substr($ts,4,1) === '-') {
+ $ts = preg_replace('/\D/', '', $ts);
+ }
+
if ( $adj ) {
$ts = $this->userAdjust( $ts, $timecorrection );
}