Fix issue 3 tijd voor 60 seconde parameters

This commit is contained in:
Marcel Nijenhof
2021-08-30 16:12:16 +02:00
parent a7bc8a51c4
commit beadb51698

View File

@@ -562,8 +562,8 @@ Opens the connection and logs in.
# Also note that we use GMT. So we should add one hour # Also note that we use GMT. So we should add one hour
# because we use GMT +1 (MET, UTC-1) # because we use GMT +1 (MET, UTC-1)
# #
if (parameter.find("10") != -1):
now=time.time() now=time.time()
if (parameter.find("10") != -1):
dt = now%600 dt = now%600
if (dt < 330): if (dt < 330):
now = 3000 + now - dt now = 3000 + now - dt
@@ -573,7 +573,7 @@ Opens the connection and logs in.
# #
# e.g. H1 use 30 seconds to calculate the time. # e.g. H1 use 30 seconds to calculate the time.
# #
dt = now%600 dt = now%60
if (dt < 30): if (dt < 30):
now = 3540 + now - dt now = 3540 + now - dt
else: else: