Hello People, I'am using UserCake for UserManagement - in the table userCake_Users there is a column "LastSignIn" but the value is in this format: 1286066935
with this function I get the right Date
public function updateLastSignIn()
{
global $db,$db_table_prefix;
$sql = "UPDATE ".$db_table_prefix."Users
SET
LastSignIn = '".time()."'
WHERE
User_ID = '".$db->sql_escape($this->user_id)."'";
return ($db->sql_query($sql));
}
but which format is 1286066935?
this is the sql file
--
-- Table structure for table `Users`
--
CREATE TABLE IF NOT EXISTS `Users` (
`User_ID` int(11) NOT NULL auto_increment,
`Username` varchar(150) NOT NULL,
`Username_Clean` varchar(150) NOT NULL,
`Password` varchar(225) NOT NULL,
`Email` varchar(150) NOT NULL,
`ActivationToken` varchar(225) NOT NULL,
`LastActivationRequest` int(11) NOT NULL,
`LostPasswordRequest` int(1) NOT NULL default '0',
`Active` int(1) NOT NULL,
`Group_ID` int(11) NOT NULL,
`SignUpDate` int(11) NOT NULL,
`LastSignIn` int(11) NOT NULL,
PRIMARY KEY (`User_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;