This topic is locked

Calendar and local settings in 11.1

8/14/2025 5:35:04 PM
PHPRunner General questions
E
Eirik author

Hi

Have tested the calendar view with using the default calendar. Took notice that when I have my local settings to use 24 hours clock it display correct when adding, editig and viewing any calendar item but in the overview it always show the time using AM/PM notation. Can this be overriden? Currently I have selected to use english language and norwegain notation which is 24 hours presentation (which works for ok for details but not the overview). Got the same result on both linux and windows installation.

BR
Eirik Nesje

ChatGPT 8/14/2025

Hi Eirik,

It sounds like you're experiencing an issue with the calendar view in PHPRunner where the overview is displaying time in AM/PM format, despite your settings for a 24-hour clock. This can sometimes happen due to language settings or specific configurations in PHPRunner.

Here are some steps you can take to try and resolve the issue:

  1. Check Language Settings: Make sure that your language settings in PHPRunner are correctly configured to use Norwegian settings. Sometimes, the language setting can affect how the time is displayed. Ensure both the "Language" and "Locale" settings are set to Norwegian.


  2. Date and Time Format Settings: In PHPRunner, there are settings for date and time formats that might need adjustment. Check under the "Settings" menu where you can specify the date and time format. Ensure that the format for the overview is set to use the 24-hour format.


  3. Custom Script: If the above settings do not resolve the issue, you might consider adding a custom script to override the default behavior. You could use JavaScript to format the time display in the calendar overview to your desired format. Look for an option to add custom JavaScript in the PHPRunner settings or directly in the calendar page.


  4. Updating PHPRunner: Ensure you are using the latest version of PHPRunner. Sometimes, bugs or issues are resolved in newer releases, so updating might solve your problem.


  5. Contact Support: If none of these steps work, consider reaching out to PHPRunner support. They may have more specific insights or solutions for your version and scenario.



Remember to back up your project before making any changes, and test any modifications in a development environment first.

I hope this helps! Let me know if you need further assistance.

Best regards,
[Your Name]

E
Eirik author 8/14/2025

Version and screenshot of the issue :

img alt

C
Chris Whitehead 8/15/2025

The calendar view does display 24 hour when I have them set to English UK, but if the time is on the hour then it displays as an integer rather than hours:minutes. This is on V11.1 build 43661

I do have the start and end times stored in the table as a datetime object and splitting on select due to the data being in an existing table, not sure if that's related.

`start`,
`end`,
DATE_FORMAT(start, '%Y-%m-%d') AS start_date,
DATE_FORMAT(start, '%H:%i:%s') AS start_time,
DATE_FORMAT(end, '%Y-%m-%d') AS end_date,
DATE_FORMAT(end, '%H:%i:%s') AS end_time,

img alt

E
Eirik author 8/18/2025

Hi

In py project too I get the same when switching to languar English and regional settings to English UK (24 hours display with no display of minutes on full hours). Changed back to Norwegian NB settings and it fall backs to AM/PM display. Setting the language to Norwegian makes the day display in Norwegian and the time to be in 24 hours display but with same issue as with UK regional settings.

BR
Eirik

C
Chris Whitehead 8/18/2025

Might be worth putting a ticket on for this then as it must be a bug. I'll put one on for the UK time issue.

C
Chris Whitehead 8/19/2025

@Eirik I've put a support ticket on for the UK time issue, I'll leave you to put a add one for the Norwegian issue as you can explain it better than me.

E
Eirik author 8/19/2025

Hi

Did a test on the FullCalendar home page where You have a demo to run. It is excact the samme issues there so it is not specific to PHPRunner.

BR
Eirik

C
Chris Whitehead 8/19/2025

@Eirik,

Timezone was ok, I tried that switched the Locale to Uk and the time removed the trailing zeros, so it's maybe something we can't fix in PHPRunner.