As far as I can tell the time zone is set correctly everywhere (the main backend system is set to Europe/London) and on every system involved, but the problem still persists.
I am using MythWeb on completely different systems (three) and all of them set and show the correct times for recordings. It is only Kodi that doesn't.
I have now also found that if I set a recording / look at the guide for post 27/3 (after British summertime change), every program listed by Kodi is shown an hour too early (eg the Night Manager on Sunday is listed as 20:00 to 21:00, whereas actually it is 21:00 to 22:00). That applies whether Kodi is running on the same (Ubuntu 14.04) system as the MythTV backend, or on a completely separate Windows system.
It seems the common factor here is that Kodi is misdisplaying date/time, not MythTV or the base systems themselves. It is an incompatibility between Kodi and the MythTV backend.
I would raise a bug report on this but the tracker won't let me at the moment. This is the logfile section (with debug logging enabled), actually from a Windows 7 system, but as exactly the same error occurs on the Linux Kodi and the Windows one, I imagine it is relevant:
Code:
11:13:22 T:9056 DEBUG: AddOnLog: MythTV PVR Client: PVRClientMythTV::AddTimer: title: Countryfile - Sussex, start: 1459065300, end: 1459068900, chanID: 1002
11:13:22 T:9056 DEBUG: AddOnLog: MythTV PVR Client: PVRClientMythTV::AddTimer: Creating new recording rule
11:13:22 T:9056 INFO: AddOnLog: MythTV PVR Client: Overriding the rule with template 1 'Default (Template)'
11:13:22 T:9056 DEBUG: AddOnLog: MythTV PVR Client: PVRClientMythTV::PVRtoMythRecordingRule: Found program: 1002 1459065300 Countryfile
11:13:22 T:9056 DEBUG: AddOnLog: MythTV PVR Client: PVRClientMythTV::AddTimer: Done - 45
The program is showing an hour too early in the guide. It is listed as 27/3, 7:55AM to 8:55AM, whereas in reality it is 8:55AM to 9:55AM, but by that date we are in summer time and clocks are forward 1 hour. The start time 1459065300 is actually Sunday, 2016-03-27, 07:55:00 which is exactly what you would expect to see based on the current timezone (GMT) where we are to-day not adjusted for summer time, which is where we will really be on that date. Ie UTC, not Europe/London. The following is what you get from that timestamp from a PHP script using date() setting timezone to UTC and Europe/London respectively:
Code:
Sunday, 2016-03-27, 07:55:00 (UTC) [2016-03-27T07:55:00+00:00]
Sunday, 2016-03-27, 08:55:00 (Europe/London) [2016-03-27T08:55:00+01:00]
So actually, I think there may be two separate things wrong:
- something wrong with the summer time changeover date, which explains the first error occurring from 24/3 to 26/3.
- an error in displaying items whose times are in the summer time region, while we are still in the GMT region (they need to be displayed as if we were in the summer time region).
Probably by next week it will all sort itself out, but it is likely to be wrong again (in the opposite direction) in the autumn.