Cannot change the TIME setting to 24 hours in the Calendar - I really tried! #5305

Open
opened 2026-02-20 16:32:41 -05:00 by deekerman · 2 comments
Owner

Originally created by @jobst on GitHub (Mar 11, 2025).

Issue

Apologies if the has been reported before, searched but no results reported, it maybe due to my search terms.
I found a couple of answers in the Forums, but they only point out the setting - which I have, too.

Locale as USER and ADMIN are set correctly: 23/12/2006 and 23:00
Australia/Melbourne Time zone.

Yet the calendar shows 3pm.

Possible Fix

Do not know.

Does anyone know where the times (time setting) are created/set in the Calendar module so I can try to trace this?

Steps to Reproduce the Issue

1. Open the calenday
2. times are displayed in AM/PM

I doubt this will help.

Context

It's just annoying, I really DISLIKE AM/PM and so do many other people in our company.

Version

7.14.4

What browser are you currently using?

Firefox

Browser Version

latest, I really cant keep up how frequent firefox updates.

Environment Information

Mysql 8.X, PHP 8.1

Operating System and Version

Almalinux 8.9

Originally created by @jobst on GitHub (Mar 11, 2025). ### Issue Apologies if the has been reported before, searched but no results reported, it maybe due to my search terms. I found a couple of answers in the Forums, but they only point out the setting - which I have, too. Locale as USER and ADMIN are set correctly: 23/12/2006 and 23:00 Australia/Melbourne Time zone. Yet the calendar shows 3pm. ### Possible Fix Do not know. Does anyone know where the times (time setting) are created/set in the Calendar module so I can try to trace this? ### Steps to Reproduce the Issue ```bash 1. Open the calenday 2. times are displayed in AM/PM I doubt this will help. ``` ### Context It's just annoying, I really DISLIKE AM/PM and so do many other people in our company. ### Version 7.14.4 ### What browser are you currently using? Firefox ### Browser Version latest, I really cant keep up how frequent firefox updates. ### Environment Information Mysql 8.X, PHP 8.1 ### Operating System and Version Almalinux 8.9
Author
Owner

@jobst commented on GitHub (Mar 13, 2025):

Further Information (I had some time to debug today)
in modules/Calendar/fullcalendar/fullcalendar.js on line 12928 there is following code

  '<span>' + // for matchCellWidths
    util_1.htmlEscape(slotDate.format(this.labelFormat)) +
   '</span>' :

If I put a debug line before the line above like so

console.log(this.label.format);

it shows h( :mm)a

My SuiteCRM system displays the time correctly everwhere else, like list, detail and edit views.
Only the time column of the calendar shows PM, nowhere else.

@jobst commented on GitHub (Mar 13, 2025): Further Information (I had some time to debug today) in modules/Calendar/fullcalendar/fullcalendar.js on line 12928 there is following code ``` '<span>' + // for matchCellWidths util_1.htmlEscape(slotDate.format(this.labelFormat)) + '</span>' : ``` If I put a debug line before the line above like so ``` console.log(this.label.format); ``` it shows **h( :mm)a** My SuiteCRM system displays the time correctly everwhere else, like list, detail and edit views. Only the time column of the calendar shows **PM**, nowhere else.
Author
Owner

@jobst commented on GitHub (Mar 13, 2025):

Further information:
I also found out the calendar event times are displayed incorrectly, but this is more complicated.

When I HOVER with the mouse over events in the calendar the times are shown correctly in the POPUPS, as in 16:00 hours start time, yet the SMALL time that is visible for each event in the calendar shows 4:00 - not even pm, just 4:00.

When I CLICK on an event EVERYTHING in the popup dialog box is shown correctly in 24 hour format.

Also when I "console.log" the events in the calendars (in fullcalendar.js) while displaying the calendar, the javascript calendar objects ALL carry the correct information and ALSO have the time in 24hour format, even the correct time zone data.

@jobst commented on GitHub (Mar 13, 2025): Further information: I also found out the calendar event times are displayed incorrectly, but this is more complicated. When I HOVER with the mouse over events in the calendar the times are shown correctly in the POPUPS, as in 16:00 hours start time, yet the SMALL time that is visible for each event in the calendar shows 4:00 - not even pm, just 4:00. When I CLICK on an event EVERYTHING in the popup dialog box is shown correctly in 24 hour format. Also when I "console.log" the events in the calendars (in fullcalendar.js) while displaying the calendar, the javascript calendar objects ALL carry the correct information and ALSO have the time in 24hour format, even the correct time zone data.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5305
No description provided.