From b12c1b94d09383e220dac4c5204a37ef73586a88 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sun, 9 Mar 2025 14:42:09 +0100 Subject: [PATCH] lol --- src/dcf95.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dcf95.c b/src/dcf95.c index a7c197a..43a3f58 100644 --- a/src/dcf95.c +++ b/src/dcf95.c @@ -154,7 +154,7 @@ void calculate_dcf77_bits(time_t now, int *bits) { bits[28] = parity; // Bits 29-34: Hours (BCD encoded) - int hours = t->tm_hour; + int hours = t->tm_hour-1; // Not sure why hours += 1; // UTC to CET if(cest) hours += 1; // CET to CEST bits[29] = (hours % 10) & 0x01;