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
[Python] xbmc.getRegion('time') returns wrong scheme if language is set to German #23974
Comments
@b-jesch - This issue sounds similar to a PR regarding date format: #22982 What ‘German’ locale are you using and what does your time format look like in the langinfo.xml of your language pack? When I look in the latest DE language pack, all time formats are “HH:mm:ss”. This should translate to “%H:%M:%S” as you say. xbmc/xbmc/interfaces/legacy/ModuleXbmc.cpp Line 439 in cb947dd
You say that when your language is set to English, it works OK. There are multiple ‘English’ time formats depending upon the region selected. Exactly which ‘English’ locale are you using with your test? The format “%I:%M:%S %p” suggests an original format of “h:mm:ss xx”. |
From the langinfo.xml:
All time formats are set to "regional", in case of English see screenshot. The formatting of date described in the PR #22982 is not affected. |
Have you tried |
Just tried, returns the same false scheme (%H:mm:ss) on a CoreElec 21.0beta1 compiled at 20.10.2023. Btw. the parameter 'timeraw' is not documented yet: https://xbmc.github.io/docs.kodi.tv/master/kodi-base/d6/db2/group__python__xbmc.html#ga04efad52a8903be517a8310db6a8505f On a Linux (Ubuntu Focal) system with Kodi 21.0 alpha compiled at 04.05.2023 the scheme returns the correct value (%H:%M:%S), but timeraw returns an empty string. |
I thought that the issue sounded similar to something that I had seen before. I'm out of ideas. Sorry. |
In case GttHub did not notify: fix is in #24009 |
Thanks for info. I will close this issue when the fix has merged. |
Bug report
Describe the bug
xbmc.getRegion('time') returns '%H:mm:ss' instead of the correct scheme '%H:%M:%S' when language settings is set to "German".
From an addon that calculate some time expression, the xbmc.getRegion('time') is processed and logged. For a german language setting xbmc.getRegion('time') returns '%H:mm:ss' instead of '%H:%M:%S'. As a result time calculations with
<dateobject>.strftime()
will fail. If region is set to english, all is ok (returns '%I:%M:%S %p').Expected Behavior
Here is a clear and concise description of what was expected to happen:
Until Nexus the time scheme calculation is ok. Please revert or correct this.
Actual Behavior
xbmc.getRegion('time') returns wrong scheme if german language is selected.
Possible Fix
To Reproduce
Steps to reproduce the behavior:
Debuglog
The debuglog can be found here: There's no complete debug.log as the following snippet describes the problem:
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: tested on CoreElec, Ubuntu 20.04
Kodi version: 21 alpha2, still remains on beta1 (reported on kodinerds forum: https://www.kodinerds.net/thread/68354-filmtipps-im-freien-tv-anstehende-sendetermine/?postID=731770#post731770)
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: