Page MenuHomePhabricator

Special:Log has incorrect date 0000-00-00 as prefilled value, turns into -0001-11-30
Closed, DuplicatePublic

Description

https://en.wikipedia.org/wiki/Special:Log?type=&user=&page=

Screen Shot 2018-09-07 at 13.15.02.png (946×1 px, 156 KB)

Screen Shot 2018-09-07 at 13.15.09.png (808×1 px, 143 KB)

There seems to be a problem with Special:Log, where the "From date (and earlier):" field is pre-filled with "0000-00-00". When I attempt any search, that spontaneously changes to "-0001-11-30", and thus inevitably yields no result.

Event Timeline

definitely still there for me, even in the HTML response (so no JS issue)

</td></tr><tr class="mw-htmlform-field-HTMLDateTimeField mw-htmlform-datetime-field"><td class="mw-label"><label for="mw-input-wpdate">From date (and earlier):</label></td><td class="mw-input"><input id="mw-input-wpdate" name="wpdate" size="45" value="0000-00-00" class="mw-htmlform-datetime-field" placeholder="YYYY-MM-DD" step="1" pattern="[0-9]{4}-[01][0-9]-[0-3][0-9]" type="date"/>

It works for me in Firefox, Edge and Chrome. I get the reported bug in IE11. When the date field changes to -0001-11-30 I get logs from before 2017-11-30, e.g at https://en.wikipedia.org/wiki/Special:Log?type=&user=PrimeHunter&page=&wpdate=0000-00-00&tagfilter=

@Jayprakash12345. Problem persists in Safari 11.1.2 (MacOS High Sierra 10.13.6), but does not appear to affect searches in Firefox 61.0.2.

The error also happens with Firefox ESR 52.9.0, Vector skin on my age-old Windows XP SP3 system. After the date field is emptied manually, its display changes to light-grey "YYYY-MM-DD" format information (I am assuming this would be the correct default status), and further searches in the actual page work. Once the log page is closed and re-started, the same issue happens again unless the date field is cleaned up again first.