24 H notation

  • Geert
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 1 month ago #132472 by Geert
24 H notation was created by Geert
Hello,

Is it possible to get a 24 hour notation so instead of 8.00 PM -> 20.00 uur

see attachement ( in full calendar)
Attachments:

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
4 years 1 month ago #132490 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic 24 H notation
Go to Events Booking -> Configuration, find the config option Event Time Format. At the moment, it's g:i a, changes it to H:i and it will be fine. See www.php.net/manual/en/function.date.php to see list of parameters which can be used to format date and time if you want to know more

Tuan
The following user(s) said Thank You: Geert

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #132598 by Anthony Geselle
Replied by Anthony Geselle on topic 24 H notation
I use this for event date: "l d-m-Y H:i" and this for time: "H:i"

Please Log in or Create an account to join the conversation.

  • Geert
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 1 month ago #132603 by Geert
Replied by Geert on topic 24 H notation
I have this noification but in full calendar i get AM time and in the tooltip it's correct

?

Thanks

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
4 years 1 month ago #132629 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic 24 H notation
For fullcalendar, it's actually built by javascript, so the time format is different and you have to control it via menu item parameters

Please edit the menu item which you created to display full calendar, find the parameter Time format Month. By default, it's h:mm a, Change it to HH:mm should help (see momentjs.com/docs/#/displaying/format/ for list of supported parameters)

Tuan
The following user(s) said Thank You: Geert

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc