Created attachment 8086 [details] patch to fix this bug When the function update_passwd is called on a system with a date set to 1st Jan 1970 (like some embedded devices), the change date is set to 0, which has a special meaning: "The value 0 has a special meaning, which is that the user should change her password the next time she will log in the system." The attached patch fixes, this behaviour by setting the change date to -1 if called on 1st Jan 1970.
Fixed in git, thanks!