Unix time rounded to today's midnight

Hopefully this change fixes #155.
Merge pull request #156 from vieira/patch-1

Fixes "today" display caused by faulty rounding