aboutsummaryrefslogtreecommitdiffstats
path: root/dcf77_gps.lua
diff options
context:
space:
mode:
authorPA4WDH2022-10-30 18:58:08 +0100
committerPA4WDH2022-10-30 18:58:08 +0100
commit544b37eef0cf5f00d2efb954eb51dc78cbc209de (patch)
tree98656681c43d924848e7726a7b50e72b3f1935aa /dcf77_gps.lua
parentFix bug with wintertime (diff)
downloaddcf77_gps-544b37eef0cf5f00d2efb954eb51dc78cbc209de.tar.gz
dcf77_gps-544b37eef0cf5f00d2efb954eb51dc78cbc209de.tar.bz2
dcf77_gps-544b37eef0cf5f00d2efb954eb51dc78cbc209de.zip
Final fix for wintertime issueHEADmaster
Diffstat (limited to 'dcf77_gps.lua')
-rw-r--r--dcf77_gps.lua11
1 files changed, 5 insertions, 6 deletions
diff --git a/dcf77_gps.lua b/dcf77_gps.lua
index 1b46cba..dad17f1 100644
--- a/dcf77_gps.lua
+++ b/dcf77_gps.lua
@@ -227,14 +227,13 @@ function parse_data(data)
valid_times=valid_times+1
--print("Total "..valid_times.." valid times and "..total_times-valid_times.." invalid times")
- --if string.sub(data,18,18)==1 then
+ if string.sub(data,19,19)=="1" then
--print("Subtracting 1 hour for CET timezone")
- --hour=hour-1
- --else
+ hour=hour-1
+ else
--print("Subtracting 2 hours for CEST timezone")
- --hour=hour-2
- --end
- hour=hour-1
+ hour=hour-2
+ end
if hour<0 then
hour=hour+24
day=day-1