forked from Wavyzz/dolibarr
Fix tz of message on popup
This commit is contained in:
@@ -170,8 +170,8 @@ if (empty($_SESSION['auto_check_events_not_before']) || $time >= $_SESSION['auto
|
|||||||
$event['code'] = $obj->code;
|
$event['code'] = $obj->code;
|
||||||
$event['label'] = $obj->label;
|
$event['label'] = $obj->label;
|
||||||
$event['location'] = $obj->location;
|
$event['location'] = $obj->location;
|
||||||
$event['reminder_date_formated'] = dol_print_date($db->jdate($obj->dateremind), 'standard');
|
$event['reminder_date_formated'] = dol_print_date($db->jdate($obj->dateremind), 'standard', 'tzuser');
|
||||||
$event['event_date_start_formated'] = dol_print_date($db->jdate($obj->datep), 'standard');
|
$event['event_date_start_formated'] = dol_print_date($db->jdate($obj->datep), 'standard', 'tzuser');
|
||||||
|
|
||||||
$eventfound[$obj->id_agenda] = $event;
|
$eventfound[$obj->id_agenda] = $event;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ print "jQuery(document).ready(function () {\n";
|
|||||||
//print " console.log('referrer=".dol_escape_js($_SERVER['HTTP_REFERER'])."');\n";
|
//print " console.log('referrer=".dol_escape_js($_SERVER['HTTP_REFERER'])."');\n";
|
||||||
|
|
||||||
print ' var nowtime = Date.now();';
|
print ' var nowtime = Date.now();';
|
||||||
print ' var time_auto_update = '.$conf->global->MAIN_BROWSER_NOTIFICATION_FREQUENCY.';'."\n"; // Always defined
|
print ' var time_auto_update = '.max(1, getDolGlobalInt('MAIN_BROWSER_NOTIFICATION_FREQUENCY')).';'."\n"; // Always defined
|
||||||
print ' var time_js_next_test;'."\n";
|
print ' var time_js_next_test;'."\n";
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user