Created
March 27, 2022 17:10
-
-
Save simonesestito/1d701331cab219955c23693de787572e to your computer and use it in GitHub Desktop.
WhatsApp timestamp fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /sdcard/Android/media/com.whatsapp/WhatsApp/Media | |
while read path; do f=$(basename "$path"); touch -d "${f:4:4}-${f:8:2}-${f:10:2}T12:00:00z" "${path}"; done < <(find . -regextype posix-extended -regex ".*/[[:alpha:]]{3}-[[:digit:]]{8}-.*") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment