Handle also formatted time 00:30 for settlement time.
This commit is contained in:
@@ -23,8 +23,9 @@ if (isset($CFG->an_cutoff)) {
|
||||
$frm->an_cutoff_hour = $hrs; $frm->an_cutoff_min = $mins;
|
||||
}
|
||||
if (!isset($frm->an_cutoff_hour)) {
|
||||
$frm->an_cutoff_hour = get_user_timezone_offset();
|
||||
$frm->an_cutoff_min = 5;
|
||||
$timezone = format_float(get_user_timezone_offset(), 1);
|
||||
$frm->an_cutoff_hour = intval($timezone);
|
||||
$frm->an_cutoff_min = (intval(round($timezone)) != intval($timezone)) ? 35 : 5;
|
||||
}
|
||||
|
||||
if (!isset($frm->acceptccs)) {
|
||||
|
||||
Reference in New Issue
Block a user