Bug 1054178 - [Gaia][calendar] support 24 hour time format

we should abstract the 12/24 hour logic into a single function.