From ca8f8a56dc159833d9032ec2b411d970e0e38857 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Fri, 20 Nov 2015 13:22:08 +0000 Subject: [PATCH] Use UTC for WSPR band hopping scheduling Some locations use offsets from UTC that are not integral hours. Merged from ^/branches/wsjtx git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx-1.6@6137 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;