-
Notifications
You must be signed in to change notification settings - Fork 5
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
Issue with modifying pictures and only the 'modified' date gets changed instead of the 'made' date as well. #4
Comments
@FrappuccinoCaramel I just faced the same problem. You can replace the following: original get_date function to:
original elif block to:
|
Hi @dariustanrd, thank you so much for sharing your recommended solution! I've edited the script and replaced that function and block with your code in the same indentation style. When I tried running it the following error came, unfortunately:
I'm not really into Python so I likely won't be able to fix it myself. |
@FrappuccinoCaramel here's the full script that worked for me! I added more filetypes (audio, docs, stickers) as i realised WhatsApp's naming convention for them are similar too.
|
@dariustanrd Thank you so much! I ran your edit of the code without any problems, it did just like you said it would. Great work. Maybe it would be nice to create a PR, because I feel like your changes are literally what the original code should've been. |
For me the video part didn't work. Leaving this here in case others bump into this. In order to get video dates fixed (Windows only solution) I did the following:
Then I modified the script to the following:
and directly below the following code:
add the following line:
Then I ran the script, then I had to zip up the files, copy the zip to the phone and then extract the files (because copying them over just like that caused the "created" date to get changed). |
Very nice @dariustanrd! If you want, you can create a PR and I'll merge your changes and add a mention of your contribution in the readme. |
Hi @holwech, thank you for WhatsApp Backup Fixer to begin with.
I understand how your script works and what it does, but I'm certain that there's something wrong with it. I did multiple reproduction steps. The issue is that the dates of WhatsApp images don't get changed properly, once I run the script it sets the 'modified' date of said image(s) to the current date (so, when the script ran). With WhatsApp videos it does change the 'modified' date to the one it retrieves from the filename, but it also doesn't change the 'made' date.
So, I would like to ask you if 1) you can fix that the date gets changed for the pictures, that seems totally broken right now and 2) if you can make it so that it modifies the 'made' date instead of only the 'modified' date. Most mobile phones, and please correct me if I'm wrong, will sort the pictures by 'made' date rather than 'modified'. At least my phone does and others that I know of. Due to this it'll still be messed up and take away the meaningfulness of this script.
I'm on Windows 11 by the way, I've also tried BATCHIFIER, it changes the dates of pictures too but also only the 'modified' date.
The text was updated successfully, but these errors were encountered: