Modified test to accept 24 or 12 hour clock values.

Tests were passing on my machine (LibreOffice outputting in 24 hour clock format) and failing on TravisCI (LibreOffice outputting 12 hour clock format).