# Wrong date for files created on SMB external storage

**URL:** <https://help.nextcloud.com/t/wrong-date-for-files-created-on-smb-external-storage/7552>\
**Category:** ℹ️ Support\
**Created:** [January 15, 2017, 1:38am UTC](https://help.nextcloud.com/t/wrong-date-for-files-created-on-smb-external-storage/7552 "2017-01-15T01:38:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wobblywob](https://help.nextcloud.com/letter_avatar/wobblywob/32/5_5575768a8748004e209b776fc1b2916d.png) [@wobblywob](https://help.nextcloud.com/u/wobblywob)\
**Post date:** [January 15, 2017, 1:38am UTC](https://help.nextcloud.com/t/wrong-date-for-files-created-on-smb-external-storage/7552/1 "2017-01-15T01:38:13Z")

</div>

Folders and files synced through the NextCloud client (Mac Sierra) or through the web interface change their “created” and “modified” date to “current date” on the server side (when the destination folder resides on a SMB external storage). Shortly thereafter when the client syncs again, folder dates and random files change on the client to “current date”.

If I copy the file directly to the SAMBA share, the dates are preserved. But when owncloud client syncs, they show up with “current date” on the mac while keeping their original timestamp on the samba server.

Example in photo. Left are on the mac and right are the same folders in samba.

 ![](https://help.nextcloud.com/uploads/default/original/2X/f/f784b33e0f1ca39c008587cdeb6f10880a6e2b83.png)

After a while, I get the following error: “This sync would reset the files to an earlier time…etc” . I select Keep Local files but it just keeps popping up.

If I copy a file to a folder that’s not on a samba share (local on the server), I don’t have this problem. All files and folders are copied with original created and modified dates.

System details:  
Nextcloud 10.0.0 (although config.php says 10.0.10)  
Debian 8.1  
Apache 2.4.10  
PHP 5.6.27-0+deb8u1  
smbclient installed with apt-get  
installed php5-smbclient with method described [here](https://software.opensuse.org/download.html?project=isv%3AownCloud%3Acommunity%3A8.1&package=php5-libsmbclient)

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 2, 2024, 12:35pm UTC](https://help.nextcloud.com/t/wrong-date-for-files-created-on-smb-external-storage/7552/2 "2024-12-02T12:35:47Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 12:58pm UTC](https://help.nextcloud.com/t/wrong-date-for-files-created-on-smb-external-storage/7552/3 "2024-12-04T12:58:55Z")

</div>


