append pm and other small changes to getting time