We display event dates/times via Wordpress date and time functions in am/pm time (12 hour, not 24 hour). For any times that are noon - i.e. "12:00 pm" - we'd like to display "12:00 noon" instead.
And we'd also like to display "12:00 midnight" instead of "12:00 am".
This is to avoid confusion (we run online events around the world at different times so there is room for this type of confusion).
All other times of the day can keep their am/pm, it's just these two exact times that we're seeking to change.
am
andpm
using jQuery - can you post your output code so we can see if there's something that can be targeted via the functionality? I've done something similar by replacing 'months' with 'seasons' but you have to be able to target an element and replace the text.<span class="pp-time">12:00 pm</span>
?$(".tas-event-time").text(function () { return $(this).text().replace("pm", "noon"); });
pm
instances though, just those that start at 12:00, correct?