Booked Scheduler Community Support
October 22, 2018, 03:08:29 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Booked 2.7 beta has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: FIX for wrong popup date format  (Read 527 times)
BitDealer
Newbie
*

Karma: 0
Posts: 1


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

Good evening everyone,
I'm using booked with the german layout. Everyhing looked good and formatted right, excpet 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 formatted, if you want to use this fix in another language.
Hope this helps someone Smiley
BitDealer
Logged
tholst@kabelbw.de
Newbie
*

Karma: 0
Posts: 3


« Reply #1 on: October 03, 2018, 02:27:20 PM »

Hi,

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

Hast du evtl. noch andere Hinweise?
cheers
tomek
Logged
Pages: [1]
  Print  
 
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!