CyferShepard / Jellystat

Jellystat is a free and open source Statistics App for Jellyfin
MIT License
1.01k stars 31 forks source link

Backup date wrong, new backups get deleted as soon as they are done being created. #215

Open kman3107 opened 3 months ago

kman3107 commented 3 months ago

Describe the bug Did anything ever come of this #61 ? Because this is still an issue for me. I started my Jellystat at 1.0.9 and have now updated to 1.1.0.

PS. I have tried deleted all backups. New backups are still created in the past :(

Environment Details (please complete the following information):

To Reproduce Steps to reproduce the behavior:

  1. Go to Settings
  2. Click on Start (Backup Jellystat)
  3. Go to Settings > Logs
  4. See error

Expected behavior Oldest backup should be deleted, not the new one.

Task Logs

Starting Backup
Begin Backup /app/backend/backup-data/backup_2024-06-15 03-51-55.json
Saving 7 rows for table jf_libraries
Saving 3006 rows for table jf_library_items
Saving 1352 rows for table jf_library_seasons
Saving 41501 rows for table jf_library_episodes
Saving 2 rows for table jf_users
Saving 1219 rows for table jf_playback_activity
Saving 497 rows for table jf_playback_reporting_plugin_data
Saving 39891 rows for table jf_item_info
Backup Complete
Removing old backups
/app/backend/backup-data/backup_2024-06-15 03-51-55.json has been deleted.
1 backups removed.

Additional context For some reason Jellystat is stuck in 1970. So all logs are tagged with that as the creation date. When I go inside the docker container and check the date I get the correct time and date. (same for postgres and Jellyfin containers)

date
> Sat Jun 15 03:58:09 CEST 2024