Use a more sensible mercurial template: hg log --template "{date(date, %s)}\n"