I got a new Android phone and had the problem that during copy process from the old to the new smartphone the file dates of my images changed to the current date. The gallery app showed them all under the same month… The following script helped me to overcome this problem, just follow the instructions presented in the readme file.
Here is the code: https://code.huber.xyz/pub/image-date-handler