made AM/PM indicator functional