Fix for 24-hour time format not working

Fixes #41