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

Kodi show date as 1969-12-31 with WebDAV and CJK locales on Mac #20512

Open
1 of 7 tasks
kirbyzhou opened this issue Nov 13, 2021 · 11 comments
Open
1 of 7 tasks

Kodi show date as 1969-12-31 with WebDAV and CJK locales on Mac #20512

kirbyzhou opened this issue Nov 13, 2021 · 11 comments

Comments

@kirbyzhou
Copy link

kirbyzhou commented Nov 13, 2021

Bug report

Describe the bug

Kodi on Mac display all file date as "1969-12-31" with WebDAV source and CJK locales.

Expected Behavior

Display correct dates as in English Locale / WebDAV.

Actual Behavior

All files have the invalid date "1969-12-31" with WebDAV and CJK locales.

To Reproduce

  1. Install MacOS 64bit version kodi
  2. Into Videos/Files/'Add videos' to add a WebDav source. For examples "Incoming"
  3. Into Settings/Interface/Regional/Language to Chinese or Japanese or Korean. for example Chinese.
  4. Into Videos/Files/Incoming ("视频/文件/Incoming")
  5. Sort("排序") by Date("日期")
  6. You can see all files have the invalid date "1969-12-31".

BTW:
The bug happens no matter how I set the short date format in Regional.

Debuglog

I think there is no meaningful log, because no Error/Warning are reported by kodi itself.

kodi.log

Screenshots

Additional context or screenshots (if appropriate)

apache webdav-conf:

LoadModule dav_module libexec/apache2/mod_dav.so
LoadModule dav_fs_module libexec/apache2/mod_dav_fs.so
LoadModule dav_lock_module libexec/apache2/mod_dav_lock.so

<VirtualHost *:80>
    DavLockDB "/var/lib/apache2/DavLock"
    Alias /dav/Incoming     "/Volumes/MacHome-NoBackup/Incoming"
    <Location /dav>
        Dav On
        Options +Indexes
        IndexOptions +FoldersFirst +NameWidth=100
    </Location>
</VirtualHost>

Your Environment

Used Operating system:

  • Android

  • iOS

  • tvOS

  • Linux

  • OSX

  • Windows

  • Windows UWP

  • Operating system version/name:
    macos-14.6
    apache Apache-2.4.46

  • Kodi version:
    kodi-19.3 for mac
    kodi-20211103-16aa5f88-master-x86_64.dmg

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.

@kirbyzhou kirbyzhou changed the title Kodi show date as 1961-12-31 with WebDAV and CJK locales on Mac Kodi show date as 1969-12-31 with WebDAV and CJK locales on Mac Nov 13, 2021
@basilgello
Copy link
Collaborator

@kirbyzhou I am not able to reproduce the issue on Debian:

webdav-chinese

@fuzzard can you try reproducing this? I can write an extended test case here.

@kirbyzhou
Copy link
Author

@kirbyzhou I am not able to reproduce the issue on Debian:

webdav-chinese

@fuzzard can you try reproducing this? I can write an extended test case here.

It works correctly on Android.
I can only reproduce it on macos.

@KarellenX
Copy link
Member

KarellenX commented Nov 13, 2021

This is a duplicate issue to this where the OP has already posted... #17309

@basilgello
Copy link
Collaborator

basilgello commented Nov 13, 2021

@KarellenX there were two bugs in there… and this bug affects 64-bit osx builds while the bug which gets fixed by #18727 manifests on 32-bit everywhere.

@fuzzard
Copy link
Contributor

fuzzard commented Nov 13, 2021

Well i can confirm the issue. What i can also see is this effects every language other than english when used with a webdav source, not just CJK based languages. When English (or variants like English (Australia)) are used, dates are shown correctly.

The FileItems have the correct parsed CDateTime corresponding to the file times, but for whatever reason the display label doesnt show it and reverts back to epoch - 1 (ie 31/12/1969).

Same content via another source (NFS/SMB) works, so looks to be dav specific. I dont know enough about the guilib side of things to trace back where the label is going wrong.

Edit:
Also isnt skin dependant. Tried another skin from repo (AppTV), same fault, so definitely something with the label for the date in core.

@fuzzard
Copy link
Contributor

fuzzard commented Nov 14, 2021

Also confirming that #18727 has no effect on the label date, so i dont think the issue is due to date handling as such

@kirbyzhou
Copy link
Author

Any fix?

@kirbyzhou
Copy link
Author

Bug still happens at Kodi-19.4

@KarellenX
Copy link
Member

@fuzzard or @basilgello Do you have time to look at this related issue... https://forum.kodi.tv/showthread.php?tid=368277

Not really sure what to do for him to resolve it.

@KarellenX
Copy link
Member

@basilgello
Copy link
Collaborator

@KarellenX The topics you linked are not related to webdav. As I mentioned in the issies, there are two separate bugs related to date and time. webdav bug is separate from what #18727 resolves.

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

No branches or pull requests

4 participants