Adjust hour value correctly when saving 12-hour-formatted times.
Remove the extra hour that the time formatting function arbitrarily adds for some reason.