Fix build and display of dates (Fixes #1)