From 3f8bba4da7677ebd77705eed56bfa60330c22ccf Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Fri, 20 Nov 2015 13:19:05 +0000 Subject: [PATCH] Use UTC for WSPR band hopping scheduling Some locations use offsets from UTC that are not integral hours. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6136 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- WsprTxScheduler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WsprTxScheduler.cpp b/WsprTxScheduler.cpp index 7e3c64e59..73469e81f 100644 --- a/WsprTxScheduler.cpp +++ b/WsprTxScheduler.cpp @@ -200,7 +200,7 @@ int create_tx_schedule(int pctx) int next_tx_state(int pctx) { time_t now=time(0)+30; - tm *ltm = localtime(&now); + tm *ltm = gmtime(&now); int hour = ltm->tm_hour; int minute = ltm->tm_min; @@ -221,7 +221,7 @@ int next_tx_state(int pctx) int next_hopping_band() { time_t now=time(0)+30; - tm *ltm = localtime(&now); + tm *ltm = gmtime(&now); int minute = ltm->tm_min; int tx_2min_slot = (minute%20)/2; return tx_2min_slot;