declare local var.offset_by_hour FLOAT;
set = regsub(client.geo.utc_offset, "^(-?)(...)$", "\10\2");
set var.offset_by_hour = client.geo.utc_offset;
set var.offset_by_hour %= 100;
set var.offset_by_hour /= 60;
set var.offset_by_hour += std.atoi(regsub(client.geo.utc_offset, "..$", ""));
set = var.offset_by_hour;
set = regsub(math.round(var.offset_by_hour), ".000$", "");
set var.offset_by_hour /= 2;
set var.offset_by_hour = math.round(var.offset_by_hour);
set var.offset_by_hour *= 2;
set = regsub(var.offset_by_hour, ".000$", "");