Make timestamps platform independent

Using strftime results in platform-specific behavior. The %-d would
cause exceptionson Windows because it doesn't support it. I created a
single method to create a timestamp and used it throughout the code and
templates. Fixes #48.