xbmc.getRegion('datelong') returns unsupported %-d strftime format directive in Kodi 21 on Android #25066
Open
1 of 7 tasks
Labels
Triage: Needed
(managed by bot!) issue that was just created and needs someone looking at it
Bug report
Describe the bug
Here is a clear and concise description of what the problem is:
When formatting a date string using
xbmc.getRegion('datelong')
in Kodi v21.0.0 on Android, the Python strftime function doesn't recognize the%-d
date format directive that is returned and simply outputs -dExpected Behavior
Here is a clear and concise description of what was expected to happen:
When formatting a date string using
xbmc.getRegion('datelong')
in Kodi v21.0.0 on Android, the Python strftime function should recognize all directives in the returned format by the xbmc.getRegion API and should output the day of the month as a human readable number.This worked totally fine before in Kodi 20.5 on Android!
Actual Behavior
returns Thursday, April -d, 2024
Possible Fix
To Reproduce
Steps to reproduce the behavior:
date.strftime(xbmc.getRegion('datelong'))
in Kodi 21 on AndroidDebuglog
The debuglog can be found here:
Screenshots
Here are some links or screenshots to help explain the problem:
Additional context or screenshots (if appropriate)
Here is some additional context or explanation that might help:
Your Environment
Used Operating system:
Android
iOS
tvOS
Linux
macOS
Windows
Windows UWP
Operating system version/name:
Kodi version: 21.0.0
note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.
The text was updated successfully, but these errors were encountered: