• Resolved tipsyhues

    (@tipsyhues)


    Event times display in military time or 24:00 format, how can I change this to 12-hour AM/PM format?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author LBell

    (@lbell)

    That should be set by your locale. Try switching locale?

    Where is this happening? On the calendar, or the popup?

    • This reply was modified 8 months ago by LBell.
    Thread Starter tipsyhues

    (@tipsyhues)

    It’s on the calendar. It used to show 12-hr until I added locale=”en-GB” to set the first day as Monday, that’s when it changed to 24-hr.

    Plugin Author LBell

    (@lbell)

    You can override the time format using the fc_args shortcode argument.

    Something like: fc_args='{"timeFormat":"h(:mm)t"}' should do the trick.

    https://fullcalendar.io/docs/v3/timeFormat

    Thread Starter tipsyhues

    (@tipsyhues)

    Unfortunately, that did not work.

    Thread Starter tipsyhues

    (@tipsyhues)

    I think it’s because of the local code, I have it set to a different country to show Monday as the first day, but I’m in the US. When I use the US locale, it defaults back to Sunday.

    Thread Starter tipsyhues

    (@tipsyhues)

    I figured it out. I removed the local code and added fc_args='{“firstDay”:”1″}’

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to display calendar times in 12-hour format?’ is closed to new replies.