Permalink
Browse files

Handle also formatted time 00:30 for settlement time.

  • Loading branch information...
1 parent d864c08 commit d9e4f9eb2a5fa92684db002c844e741ee7fbac9a ethem committed Jun 13, 2006
Showing with 3 additions and 2 deletions.
  1. +3 −2 enrol/authorize/config.html
View
5 enrol/authorize/config.html
@@ -23,8 +23,9 @@
$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)) {

0 comments on commit d9e4f9e

Please sign in to comment.