fixed bug: when system timezone is equal to your timezone, dont show the different timezones warning
This commit is contained in:
parent
fb73a0b8b2
commit
443b70c39d
|
@ -3933,6 +3933,7 @@ function ui_get_using_system_timezone_warning ($tag = "h3", $return = true) {
|
||||||
|
|
||||||
$user_offset = (-get_fixed_offset() / 60) / 60;
|
$user_offset = (-get_fixed_offset() / 60) / 60;
|
||||||
|
|
||||||
|
if ($config["timezone"] != date_default_timezone_get()) {
|
||||||
$message = sprintf(
|
$message = sprintf(
|
||||||
__("These controls are using the timezone of the system (%s) instead of yours (%s). The difference with your time zone in hours is %s."),
|
__("These controls are using the timezone of the system (%s) instead of yours (%s). The difference with your time zone in hours is %s."),
|
||||||
$config["timezone"],
|
$config["timezone"],
|
||||||
|
@ -3940,6 +3941,9 @@ function ui_get_using_system_timezone_warning ($tag = "h3", $return = true) {
|
||||||
$user_offset > 0 ? "+" . $user_offset : $user_offset
|
$user_offset > 0 ? "+" . $user_offset : $user_offset
|
||||||
);
|
);
|
||||||
return ui_print_info_message($message, '', $return, $tag);
|
return ui_print_info_message($message, '', $return, $tag);
|
||||||
|
} else
|
||||||
|
return '';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue