Found the solution! The `photo->adjustFile` was modifying the file after the date has been changed. Just need to put this code snipped below the call of `adjustFile`.