correctly handle the time zone on format