Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xbmc.getRegion('datelong') returns unsupported %-d strftime format directive in Kodi 21 on Android #25066

Open
1 of 7 tasks
mediaminister opened this issue Apr 25, 2024 · 0 comments
Labels
Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it

Comments

@mediaminister
Copy link
Contributor

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 -d

Expected 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

date = datetime.now()
date.strftime(xbmc.getRegion('datelong'))

returns Thursday, April -d, 2024

Possible Fix

To Reproduce

Steps to reproduce the behavior:

  1. Format a Python datetime object using date.strftime(xbmc.getRegion('datelong')) in Kodi 21 on Android

Debuglog

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.

@xbmc-gh-bot xbmc-gh-bot bot added the Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it label Apr 25, 2024
@mediaminister mediaminister changed the title xbmc.getRegion('datelong') returns unsupported -d strftime format directive in Kodi 21 on Android xbmc.getRegion('datelong') returns unsupported %-d strftime format directive in Kodi 21 on Android Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it
Projects
None yet
Development

No branches or pull requests

1 participant