Fixed timestamp problem for mysql 5.5