ACF date formats

Not sure if this is a bug. Couldn’t get date formatting to work with the following code:

<Field acf_date=course_start_time format="g:ia"/>

It displays 2:30pm as 2:03pm

This code does work:

<Date format="g:ia"><Field acf_date=course_start_time /></Date>

Thank you for the issue description.

I haven’t been able to recreate the bug on my end yet. Possibly, this is an ACF date/time field which should use acf_date_time or acf_time attributes.

Could you try that and see if it makes a difference?

Thanks, yeah I should have used acf_time. It works correctly.

1 Like