Hello, I just re-did my media server and re-added all my media about 2 days ago.
When I go to sort the media by date added (even after 2 days from when this media was added), I have a wide range of values from ‘just added a few seconds ago’ all the way up to added 43 years ago.
I have since added new media and it doesn’t show under recently added; the media’s ‘date added’ isn’t changing or updating. I just added a new movie and it’s listed as added ‘a few minutes ago’ even though I literally just added it and it is not showing in front of the other things that are still showing as listed ‘a few seconds ago’
This is really annoying; I can’t see ANY new content that I add it’s all being covered up by the incorrect stuff and I have to go searching for new things I add.
The things that were reported as being added “a few seconds ago”, are still “a few second ago”; no changes since yesterday. But the title I added yesterday has a time on it that is correct.
Not sure what to do, would love to just scrub all the dates and have it go from today moving forward or have it use the date_aired/date_released for all the current entries then have it use the correct date moving forward.
That can happen if you add media at a time when the server device hasn’t synced its date/time yet. Which may cause it to work with a date that is in the future.
Make sure that you enable the automatic time synchronisation (ntp) and verify that it’s working.
Write down the path(s) which shows up in the current library’s properties, on the “Add Folders” tab.
Then I recommend you to remove the whole library and create a new one.
If you put the aforementioned paths all in during the course of the library creation, Plex will use the date on their files to set the “Added At” date.
Resulting from the above, your files must not have a file date in the future.
You might wanna verify that beforehand.
Okay, I’ll do this but there has to be a better way than re-doing the library. Isn’t some of this data stored in a database? If it’s stored in a database, why can’t a command be run to reset the dates within the database?
Umm, time zone stuff, checked time, … didn’t do the folder thing because I have a lot and everything is affected; so I wiped my lib; then re-added it but while I was checking I realized I was not within my plex docker for the timezone stuff; so I’m re-doing it again.
Note, it appears that the date only gets set incorrectly upon adding a new library; if I drop a file into an existing library it has the right information.
If the timestamp on my media is what is causing this, then I would say it’s a bug in Plex.
Why?
The issue is only present when the media is already in the library when the library is added to the server. If you add the media to the library AFTER the library has already been added, then it works fine. This says to me that they are using two different methods to create this timestamp …
The timestamp on my media should have no impact on the timestamp that Plex should be creating when media is added.
if (media->exists_in_lib == FALSE) ts = NOW() (and NOW() should have nothing to do with any timestamp or anything in regards to the media being added)
not
if (media->exists_in_lib == FALSE) ts = media->getLastModifiedDate()
or
if (media->exists_in_lib == FALSE) ts = media->getDateCreated()
The dates were STUCK once added if the media was already in the library when the library was added. I checked my timestamps; there are some funky timestamps (that have like a year in the future) but that’s only like a few piece of my media, not my entire library.
I’m using Fedora 36 with the linuxserver/plex docker with a NFS (that hasn’t changed in years besides some additional media being added to it).