Steps to replicate the issue (include links if applicable):
- On current version on Wikipedia (rMW768fd92)
- When connected as a user (like mine) created before December 2005 (when the field user.user_registration was added in the database, see rSVN12207)
- Open the API Query UserInfo https://fr.wikipedia.org/w/api.php?action=query&meta=userinfo&uiprop=*&formatversion=2
What happens?:
The field registrationdate is the current date and time (currently "registrationdate": "2024-03-24T16:46:27Z"), and it is updated when the query is refreshed.
What should have happened instead?:
Either the field registrationdate should be missing (given the date is not known) either it should be null (like the value in the database).
I find null would be a better choice to be coherent with other values (like api.php?action=query&list=users&usprop=registration like in T350741 -- example on ApiSandbox with my user).
This bug could disappear on individual wikis if/when some script like described in T24097 is run, but before such action is done a more realistic value should be written in this API request.
Software version (skip for WMF-hosted wikis like Wikipedia):
MediaWiki: rMW768fd92