Display time in correct 12-hours format

fix #1