robweber / xbmcbackup

Backup Addon for Kodi
MIT License
112 stars 48 forks source link

Wrong date parse (locale) #224

Open dusan-ivanco opened 1 year ago

dusan-ivanco commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Yes - this is in restore

IMG_7262

robweber commented 1 year ago

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 commented 1 year ago

Hi

I have 20.2 - should i post you my config?

robweber commented 1 year ago

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.