Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong DAB time #825

Open
andimik opened this issue Nov 10, 2024 · 1 comment
Open

Wrong DAB time #825

andimik opened this issue Nov 10, 2024 · 1 comment

Comments

@andimik
Copy link
Contributor

andimik commented Nov 10, 2024

I've recognized that the DAB time is wrong, it shows UTC-1 as GMT.

I'm living in Austria, so it is currently 12:46 local time (UTC +1h).

Welle-io

grafik

Expected time should be 11:42, not 10:42.

AbracaDABra

Ensemble:
0xA304 DAB+ MUX 2-StBK [ MUX2StBK ] ECC: 0xE0, UTC 60 min, INT: 1, alarm announcements: 0

grafik

Tested on 6 muxes from 2 countries, so it's not a broadcaster issue.

@andimik
Copy link
Contributor Author

andimik commented Nov 10, 2024

I'm not (!) a programmer, but what about this?

diff --git a/src/backend/fib-processor.cpp b/src/backend/fib-processor.cpp
index 3cd18724..09f62830 100644
--- a/src/backend/fib-processor.cpp
+++ b/src/backend/fib-processor.cpp
@@ -516,7 +516,7 @@ void FIBProcessor::FIG0Extension10(uint8_t *fig)
     dateTime.year = Y;
     dateTime.month = M;
     dateTime.day = D;
-    dateTime.hour = getBits_5(fig, offset + 21);
+    dateTime.hour = getBits_5(fig, offset + 21) +1;
     if (getBits_6(fig, offset + 26) != dateTime.minutes)
         dateTime.seconds =  0;  // handle overflow

No idea if this solves it even for 23 hrs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant