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

Wrong date parse (locale) #224

Open
dusan-ivanco opened this issue Jul 6, 2023 · 5 comments
Open

Wrong date parse (locale) #224

dusan-ivanco opened this issue Jul 6, 2023 · 5 comments

Comments

@dusan-ivanco
Copy link

Describe the problem
The date format is not correctly processed in restore mode according to the local language settings. In the Slovak language, which has the format "d.m.Y H:i:s," it displays, for example, "-d.-m.2023 19:53:00."

Platform and Kodi version
Android, Kodi 20.2

@robweber
Copy link
Owner

robweber commented Jul 6, 2023

Is this when the restore points are being displayed for selection?

The date formatter should be formatting the date according to Kodi's regional settings. In the date format function a call to getRegionalTimestamp() is made. If you can confirm exactly where in the process you're seeing the incorrect date I'll play with it.

@dusan-ivanco
Copy link
Author

Yes - this is in restore

IMG_7262

@robweber
Copy link
Owner

robweber commented Jul 7, 2023

What version of the Backup addon are you using? I changed my regional settings to Slovak and the dates parsed fine on my backup files. I was on Kodi 20.0 but can upgrade to 20.2 and try it again.

screenshot

@dusan-ivanco
Copy link
Author

Hi

I have 20.2 - should i post you my config?

@robweber
Copy link
Owner

I updated my setup to 20.2 and when I switch to Slovak for the language the dates show up just fine for me. There is obviously some kind of parsing error going on for you but I can't recreate it. Can you tell me what version of the Backup addon you're using? It's possible I've made a change in the repo version I'm running that is messing things up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants