Parse mysql timestamps