Thank you for this needed pluging! I'm using a "user autocreate" feature (LDAP AD authentication) and in this case first user's login date-time is a current date-time, i.e. lastvisitDate is equal to Registred Date. Could you please check these dates if lastvisitDate "0000-00-00 00:00:00". Or you can add an option in pluging config to choose suitable method. Thank you in advance!