update AM to the time