my-photo-timeline icon indicating copy to clipboard operation
my-photo-timeline copied to clipboard

modified date is erased

Open aquino-a opened this issue 2 years ago • 2 comments

Hello,

I noticed that the modified date of the photos is set to january 1, 1970 for all of the photos. Is it possible you would be able to fix that?

The issue seems to be here: https://github.com/wiringbits/my-photo-timeline/blob/2a7b117679cf7effe8a52d693c3e1f2487370a5f/src/main/scala/net/wiringbits/myphototimeline/FileOrganizerService.scala#L59

Could you use the orignal modified date?

aquino-a avatar Mar 26 '22 11:03 aquino-a

Nice catch!

From what I can remember, I did it this way because many photos didn't had a valid createdOn/modifiedOn timestamp, for some of them, the app can parse such timestamp from the exif metadata or the filename.

So, I'd likely check a time interval to take the data that makes more sense and set that one.

Unfortunately, I do not think I can look into this soon but I'm happy to review a PR if you are willing to handle it.

Thanks.

AlexITC avatar Mar 26 '22 15:03 AlexITC

Since the file is moved wouldn't the modified date be intact after moving?

aquino-a avatar Mar 28 '22 04:03 aquino-a