must divide the js timestamp by 1000 to make it match with php