set last modification date if possible