2023-07-29, 21:20
In my addon I'm retrieving ListItem.Premiered and need to convert it into a different format. I'm not sure of the best way to handle this.
The problem is as far as I can see there is no easy way to know what the starting format of ListItem.Premiered is to initially build the python datetime object, as I don't know what region and date format the end user is going to have Kodi set to. Does Kodi give you a way to retrieve the date format in python?
The problem is as far as I can see there is no easy way to know what the starting format of ListItem.Premiered is to initially build the python datetime object, as I don't know what region and date format the end user is going to have Kodi set to. Does Kodi give you a way to retrieve the date format in python?