Fixed localStorage and added am/pm frontend option