Handle also formatted time 00:30 for settlement time.

This commit is contained in:
ethem
2006-06-13 15:59:11 +00:00
parent d864c083c2
commit d9e4f9eb2a
+3 -2
View File
@@ -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)) {