I am setting a Database value within from a PHP file. In php file i have a string variable which stores unix timestamp value. 

MySql table i am having is having a schema where i have to store these timestamp values in login field which is of timestamp datatype. 

i tried sending 

```
date('Y-m-d G:i:s', strtotime($userLogin));

```

to my database but all it stores is `0000-00-00 00:00:00`