Calendar Report Time Format

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
bui
User
Posts: 275

Calendar Report Time Format

Post by bui »

The time format on the Calendar Report (Month) shows as follows
11a
2p
2:30p

I would like to show the time format as hh:mm am/pm
11:00 am
02:00 pm
02:30 pm

##what is the use of "Group ID" field in the Calendar Report


mobhar
User
Posts: 11905

Post by mobhar »

Group ID seems to make repeated events based on the value of the initial Event ID.


bui
User
Posts: 275

Post by bui »

How to show the time in HH:mm am/pm


arbei
User
Posts: 9719

Post by arbei »

You may read FullCalendar's docs on Date Formatting, you can set eventTimeFormat to ICU format "hh:mm a".

e.g.

<script>
ew.calendarOptions.fullCalendarOptions.eventTimeFormat = "hh:mm a";
</script>

To add options to FullCalendar you may use Page_Head (Example 4) and add properties to ew.calendarOptions.fullCalendarOptions (which is an object with storing options for initializing FullCalendar) by JavaScript.


mobhar
User
Posts: 11905

Post by mobhar »

Thanks. It works properly.


mapp11
User
Posts: 3

Post by mapp11 »

hello, I try with the code in phpmaker 2024 but this failure

code:

<script>
ew.calendarOptions.fullCalendarOptions.eventTimeFormat = "hh:mm a";
</script>

this code put in : server events>all pages> page head

the error is : syntax error, unexpected token "<", expecting end of file

very grateful for the help on this


arbei
User
Posts: 9719

Post by arbei »

You may find out the exact location of the syntax error in your browser's Console panel. The code you posted does not have syntax error.


mapp11
User
Posts: 3

Post by mapp11 »

You are right, it seems that the code does not recognize me since it warns me that the page is in Quirks Mode, I am using phpmaker 2024, and the calendar reported that it already comes in the version, I would understand that the Quirks Mode should not give me problems


arbei
User
Posts: 9719

Post by arbei »

Do not use Quirks Mode anymore, old browsers like IE are not supported.


Post Reply