Modified the way 12 hour format is saved on backend.