Booked Scheduler Community Support
February 22, 2020, 05:01:42 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Login Register  
Pages: [1]
Author Topic: FIX for wrong popup date format  (Read 2743 times)

Karma: 0
Posts: 1

« on: March 23, 2018, 01:21:35 PM »

Good evening everyone,
I'm using booked with the german layout. Everyhing looked good and formatted right, except for one thing: When you hover over a reservation, the end-time of the reservation in the popup was formatted in the english way (with AM/PM, not with the 24h format). The start time was formatted right.
I digged through the code to find out, that the end date is beeing formatted with the key "res_popup_time", which was missing in the de_de.lang file (along as in many others as it seems). Because of this, the date was formatted with the default format. The fix is to simply add the following line in the lang-file somewhere before the line $this->Dates = $dates;:
$dates['res_popup_time'] = 'H:i';

Of course you have to change your format (e.g. H:i), if you want to use this fix in another language.
Hope this helps someone Smiley
« Last Edit: October 27, 2018, 04:22:50 PM by BitDealer » Logged

Karma: 0
Posts: 3

« Reply #1 on: October 03, 2018, 10:27:20 AM »


bei mir funktioniert dein Tip im Kalender leider nicht...
Terminplan ist ok, aber nicht die Anzeige im Kalender.

Hast du evtl. noch andere Hinweise?
Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!