How to Prevent OneDrive from Changing File Date Modified
Question details
Users need a way to stop OneDrive and SharePoint from altering the 'Date Modified' timestamp on files that have not been edited.

- Product
- OneDrive and SharePoint
- Device & OS
- not provided
- Scenario
- Synchronizing, downloading, or restoring files between local storage and cloud servers.
- Observed behavior
- Word and Excel files receive a new local or online modification date upon sync or restoration, even when the file content remains completely unchanged.
Ensure your OneDrive client is fully updated and check that your local drive has sufficient storage space, as fixing this issue requires keeping your files saved locally.
Disable Files On-Demand in OneDrive Settings
Disabling this feature forces OneDrive to keep files locally available, which significantly reduces unnecessary timestamp changes during synchronization.
When Files On-Demand is active, OneDrive frequently changes timestamps when downloading files from the cloud or freeing up local space. Keeping files locally available minimizes these automatic meta-data changes, though it requires more hard drive space.
Click the OneDrive cloud icon in your system tray (Taskbar), click the Gear or Settings icon at the top right of the menu, and select 'Settings'.
In the Settings window, go to the 'Sync and backup' tab and expand the 'Advanced settings' section.
Locate the 'Files On-Demand' section and clear the option labeled 'Save space and download files as you use them'. If prompted, confirm that you want to download all files to your local drive.

Experience Stable File Management with WPS Office
If unpredictable file behaviors and metadata sync issues in Microsoft's ecosystem disrupt your workflow, consider switching to WPS Office. It provides a lightweight, fast, and completely free alternative that integrates smoothly with your local drives without arbitrarily altering your file metadata.
- 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Run the downloaded installer file and follow the simple on-screen instructions to complete the setup.
- 3. Open Your Documents: Launch WPS Office and open your existing Word, Excel, or PowerPoint files directly. Your formats and layouts will be preserved perfectly.

Frequently Asked Questions
Why does my file's Date Modified change when I just open and close it?
Background processes in Microsoft Office occasionally update document metadata or auto-save temporary data when a file is opened. This prompts OneDrive to sync the file and update the Date Modified timestamp, even if you did not actively edit the text.
Does restoring deleted files in SharePoint change their modified dates?
Yes. When a deleted folder or file is restored from the SharePoint recycle bin, OneDrive often treats it as a newly synchronized item, which can result in an updated local modification date.
Will disabling 'Files On-Demand' guarantee that my timestamps never change?
No. While disabling 'Files On-Demand' significantly reduces the occurrence of unwarranted timestamp changes, it is not guaranteed to prevent every update due to how complex cloud syncing mechanisms and Office metadata interactions function.




