• Fabrik4.5.3 for J!5.3.0 and J!4.2+is out

    You must update from Fabrik4.5.1 if you are running Joomla!5.3.0

    See Announcements

Fixed I've looked everywhere and I cannot find where/how to change the date and time format

usdc-or

Member
For example, on the day view of the calendar, the hours are listed 8-17. I need 8:00am to 5:00pm. The week view is
31 Mar – 4 Apr 2025, which needs to be March 31 - April 4. And none of the am times should have leading zeros. My language overrides are all set properly. I cannot figure out where these are coming from.

Can someone point me in the right direction?
 
Time formats: confirmed, it's always HH:mm

It will be fixed with the next release.

If you are running your site with "Allow fabrikDebug"="Debug JS" you can edit
media\plg_fabrik_visualization_fullcalendar\js\fullcalendar.js
and change line 594 and 605 to
dispStartTime = startDate.toFormat(startTimeFormat) + ' ';
resp.
dispEndTime = endDate.toFormat(endTimeFormat) + ' ';



Week view:
Which language are you running?
To get long month names you can override the default title formatting.
Add in you viz settings Options/FullCalendar options
Code:
{
"views": {
    "timeGridWeek": {
      "titleFormat": { "year": "numeric", "month": "long", "day": "numeric" }
        }
    }
}
 
Last edited:
Thank you troester, I will try out your suggestions. (I've been out of the office for a couple of weeks).

I'm using English language.
 
Update: the suggestion regarding the js file works great; thank you.

The override of the title default works in that it has changed Apr to April, but it still says, for example, 20-26 April 2025. In the U.S. we typcially would display April 20-26, 2025. Doesn't seem to matter what order I put them in in the override.

What controls this order? Again, I've checked all the date format language overrides that I can find.
 
This is no J! language setting but full calendar options.

But it seems it's always taking the en-GB formatting also in case of en-US.
 
All the example screen caps in the fullcalendar documentation show the date in U.S. English style.

I've spent my entire day today trying to find out how to get the week view to say "April 20-25" instead of "20-25 April" at the top and I'm all out of ideas. It's also an issue on the day view, where it's stuck on "22 April 2025" as well. Do you know where it's picking up that continental type order? I know the American way is dumb but it's what is required here.

Is there anyway to rearrange it in the fullcalendar options with the luxon tokens? Or any other way to override this? Where are the default options coming from????
 
Ok, for other U.S. users out there, it's the locale. Joomla comes default with en-GB, and we've always just used that because it's close enough. Fabrik uses the language to set the locale in the new fullcalendar, so the locale gets set to en-gb, and that's the issue.

I changed the mapping file (langtags2fc.php) from en-gb to just en and it's fine now. I may download the U.S. English language pack (not sure).
 
Great.

I think the exact change should be an additional
"en-US" => "en",
entry there.
And yes, you'll need to install the en-US language in this case.
 
Will be in the next FC release.

Additionally you will be able to set {"locale":"some-FC-tag" } in Full Calendar option, so overriding the J! language (which only makes sense if you don't have a multilingual site).

So you can do {"locale":"en" } to get the US formatting with en-GB site language.
 
Last edited:
Back
Top