Each database driver has it's own nulldate, we should be checking against that rather than hardcoding a nulldate. This PR fixes the few places where the database driver nulldate is not being used yet.
Testing Instructions
Go to Users and create a new user in the backend
Check that the user appears in the list and the last visit date is showing Never
Apply the patch
Reload the list and the last visit date should still say Never
Go to Content -> Featured Articles
Set the unpublish date for the Beginners article to a date in the past
Login to the front-end as super user
Check the article now contains the div <div class="system-unpublished">
Apply the patch
Check the div <div class="system-unpublished"> is still there
Login to the front-end of the website
Go to Your Profile (this is the user profile page)
Check that the Last visit date is there
Apply the patch
Check that the last visit date is still there
Apply the patch
Check that new users can activate themselves in the User Options
Create a new user on the front-end
Check that the email with the activation link works so that the user is activated
Check that the user is activated
Create a new user in the front-end
In the back-end activate the user as a super user/system administrator
I have tested this item✅ successfully on 36f8af6
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11396.