adjust am and pm