Ampm with dots questions

Hello,

Does anyone know where we would put this code in:

Note: The PHP date formats don’t natively allow for dots in am/pm (e.g., a.m. and p.m.), but for calendar events in LiveWhale you can choose to display them with dots by enabling <arg id="ampm_with_dots">true</arg> in your calendar widget settings.

That came from here: Date and Time Formatting - LiveWhale Support

We put that in the calendar_widget.html of one of our group calendars. It does not seem to work.

Can someone throw some more light on it?

Akbar

Hi Akbar,

That’s right, ampm_with_dots is a Calendar Widget Setting (Docs) so for more theme organizations, calendar_widget.html or calendar_settings.html is the right place to put it, inside of <widget type="events_calendar">...</widget> – if you’ve tried that and it’s not working, it may be that it’s in the wrong copy of that file or that there may be some XPHP conditional logic that may be affecting what’s loading. Hope this helps!

Karl

Thanks Karl.

We are thinking of adding $_LW->CONFIG['USE_AP_STYLE'] = true; to our global config file. Since we use feeds extensively, we would like to know if it changes the date/time format in feeds as well? If it changes that, then we may have to change the processing scripts as well?

We have plans to implement it over the summer but wanted to make sure.

Thanks,

Akbar

Sure – worth doing some side-by-side testing on dev with that setting enabled. Our docs say it’ll “will make the following changes to all calendars, details pages, widgets, and API results,” so I think any visible display fields would be affected, but I’d expect system ones like timestamps would not be.