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
This commit is contained in:
Bill Somerville 2015-11-20 13:19:05 +00:00
parent 15d4618725
commit 3f8bba4da7
1 changed files with 2 additions and 2 deletions

View File

@ -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;