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=

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

TheDJ created this task.Sep 7 2018, 11:16 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 7 2018, 11:16 AM
TheDJ updated the task description. (Show Details)Sep 7 2018, 11:21 AM
TheDJ added a subscriber: Justlettersandnumbers.

@TheDJ Can't reproduce. Can you look once more?

TheDJ added a comment.EditedSep 7 2018, 11:41 AM

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.

GermanJoe added a subscriber: GermanJoe.EditedSep 7 2018, 7:43 PM

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.