2016-08-18, 00:49
So the listitem.premiered date is off by a day in my epg. After digging in, I realized the reason is that I am in the pacific timezone (UTC -7) and the listitem.premiered code is adjusting for the timezone difference.
As the date a tv show premiered is coded as a date only (no time - which means it is likely being set as 00:00:00) when transfered from the backend (in this case tvheadend)...the date is displayed incorrectly.
So here's the question. Should the localized date code be removed from the listitem.premiered in GUIInfoManager.cpp or do we expect that the pvr backend addons should compensate for the timezone offset before sending the data to kodi?
My opinion is tv date data is already localized, so kodi should not be compensating a time different for this data. I didn't post this as a bug as it may have been intended this way - but I wanted to try to sort out which side should fix. :-)
As the date a tv show premiered is coded as a date only (no time - which means it is likely being set as 00:00:00) when transfered from the backend (in this case tvheadend)...the date is displayed incorrectly.
So here's the question. Should the localized date code be removed from the listitem.premiered in GUIInfoManager.cpp or do we expect that the pvr backend addons should compensate for the timezone offset before sending the data to kodi?
My opinion is tv date data is already localized, so kodi should not be compensating a time different for this data. I didn't post this as a bug as it may have been intended this way - but I wanted to try to sort out which side should fix. :-)