dhtmlxScheduler - formatted time


I would like to display time with AM/PM but save to database in 24hr format.

When saving, on the server in PHP 3:00PM is formatted as 03:00:00 and would like it to be 15:00:00.

Where is the recommended place to make the adjustment? On the client as scheduler event? dataProccessor event? On the server as $scheduler event? Or maybe there is a configuration setting?

Thank you!

// client
function Init() {
   scheduler.config.xml_date = "%Y-%m-%d %h:%i:%s";
   scheduler.config.hour_date = "%h:%i:%a";
   var dp = new dataProcessor("SchedEvent.php");

// server
   $scheduler = new schedulerConnector($res);
   $scheduler->event->attach("beforeInsert", "event_insert");
   $scheduler->event->attach("beforeUpdate", "event_update");

displayed date format can be changed with scheduler.config settings, it won’t affect server side and database.
check this article
docs.dhtmlx.com/doku.php?id=dhtm … #week_view