mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-21 02:17:21 +00:00
Fix wrong utc_offset
Only compare magnitude when checking for only hours given. Offsets west of UTC could be off by a factor of 100.
This commit is contained in:
parent
99535c0682
commit
b667e31dcf
@ -5657,7 +5657,7 @@ declare_proto_rig(set_clock)
|
||||
__func__, n, year, mon, day, hour, min, sec, msec, utc_offset >= 0 ? "+" : "-",
|
||||
(unsigned)abs(utc_offset));
|
||||
|
||||
if (utc_offset < 24) { utc_offset *= 100; } // allow for minutes offset too
|
||||
if (abs(utc_offset) < 24) { utc_offset *= 100; } // allow for minutes offset too
|
||||
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: utc_offset=%d\n", __func__, utc_offset);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user