Fix hg date getting