xbmcbackup icon indicating copy to clipboard operation
xbmcbackup copied to clipboard

Wrong date parse (locale)

Open dusan-ivanco opened this issue 2 years ago • 5 comments

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

dusan-ivanco avatar Jul 06 '23 04:07 dusan-ivanco

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.

robweber avatar Jul 06 '23 12:07 robweber

Yes - this is in restore

IMG_7262

dusan-ivanco avatar Jul 07 '23 15:07 dusan-ivanco

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

robweber avatar Jul 07 '23 18:07 robweber

Hi

I have 20.2 - should i post you my config?

dusan-ivanco avatar Jul 10 '23 10:07 dusan-ivanco

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.

robweber avatar Jul 13 '23 18:07 robweber