AM/PM calculation fix on "today" function