Hi! I get this rather strange behavior that EPG is late by one hour after reboot. Here's what I gathered so far trying to troubleshoot:
- Seems to happen only when timezone offset in Kodi matches the one in EPG I happen to use (tried Europe/Warsaw, Europe/Oslo). Switching timezone to something else like Pacific/Pitcairn solves the problem outright.
- To fix the problem without changing zone I can do any of the following after boot:
- restart Kodi service
- clean EPG data from Television settings. This makes Kodi crash (not sure if it's related or not) after which Kodi restarts automatically
- change timezone in Interface settings back and forth
- The EPG data in Kodi database imported from IPTV Simple Client is always correct! Here's a script I use to verify:
Bash
#!/bin/sh
name=$1
sqlite3 ~/.kodi/userdata/Database/Epg16.db << EOF
.parameter set @name "$name"
SELECT
sTitle 'Title',
datetime(iStartTime, 'unixepoch', 'localtime') 'Start',
datetime(iEndTime, 'unixepoch', 'localtime') 'End'
FROM epgtags
JOIN epg USING (idEpg)
WHERE sName = @name AND date(iStartTime, 'unixepoch', 'localtime') = date('now', 'localtime')
ORDER BY iStartTime;
EOF
Display More
I'm using 12.2.1 with RPi 4. Has anyone else experienced something like this before or has any clue what's going on?