What do I need to write/ change in this code so that it takes all users who have a join date of 1.1.1970 adn replace it with i.e. 14.1.2008? The zero does not work.
What do I need to write/ change in this code so that it takes all users who have a join date of 1.1.1970 adn replace it with i.e. 14.1.2008? The zero does not work.
Look in the xf_user table and find the value for register_date that represents that 1970 date. I would think it would be 0, but it could be something else close to that.
Look in the xf_user table and find the value for register_date that represents that 1970 date. I would think it would be 0, but it could be something else close to that.
that is strange. I checked in the table and the regstration date of the users is still "0" in the XF-usertable. But why then it does not accept the code anymore?
Code:
UPDATE xf_user
SET register_date = UNIX_TIMESTAMP('yyyy-mm-dd 2003:01:14')
WHERE register_date = 0