diff options
author | PA4WDH | 2022-10-30 16:12:52 +0100 |
---|---|---|
committer | PA4WDH | 2022-10-30 16:12:52 +0100 |
commit | 54d11bb50c207fba1032f2e69de06ada9b7b9cbb (patch) | |
tree | a7d027d50d5d5a072a95b1def05b7774e093de1b /dcf77_gps.lua | |
parent | Initial commit (diff) | |
download | dcf77_gps-54d11bb50c207fba1032f2e69de06ada9b7b9cbb.tar.gz dcf77_gps-54d11bb50c207fba1032f2e69de06ada9b7b9cbb.tar.bz2 dcf77_gps-54d11bb50c207fba1032f2e69de06ada9b7b9cbb.zip |
Fix bug with wintertime
Diffstat (limited to 'dcf77_gps.lua')
-rw-r--r-- | dcf77_gps.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/dcf77_gps.lua b/dcf77_gps.lua index e9f24f1..1b46cba 100644 --- a/dcf77_gps.lua +++ b/dcf77_gps.lua @@ -227,13 +227,14 @@ 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,18,18)==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-2 + --end + hour=hour-1 if hour<0 then hour=hour+24 day=day-1 |