# WebDAV Connection Creation/Modification Date Incorrect

**URL:** <https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212>\
**Category:** Troubleshooting\
**Tags:** webdav\
**Created:** [November 3, 2017, 4:11pm UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212 "2017-11-03T16:11:33Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcdonaldmike68](https://forum.odrive.com/letter_avatar_proxy/v4/letter/m/eb8c5e/32.png) [@mcdonaldmike68](https://forum.odrive.com/u/mcdonaldmike68)\
**Post date:** [November 3, 2017, 4:11pm UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212/1 "2017-11-03T16:11:33Z")

</div>

I am using odrive to connect over WebDAV to my file server. There are already many files in the server with creation/modification dates going back years. The dates reflect what I would expect when I view the files through a mapped network drive on windows.

However, when I connect using odrive, the dates on the placeholder files reflect the date that I first connected the drive to my account (which I would expect), but when I sync the files with my local computer, they show the sync date as the modified date instead of the file’s actual mod date.

The mod dates update as I access files through odrive, but I am essentially losing all of the historical date metadata during the sync. Are there some settings that I should be using to show the file’s actual dates? Should my WebDAV connection be sending different information? Looking for any suggestions because it is important to be able to see the correct corresponding dates for each file once synced.

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [November 3, 2017, 5:21pm UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212/2 "2017-11-03T17:21:19Z")

</div>

Hi @mcdonaldmike68,  
odrive should be showing you the modified dates on files already on your WebDAV server (this will be files only, not folders).

New uploads from your system to the WebDAV server will, unfortunately, carry the upload time as the modification time, instead of the original time, as it exists on your local system.

There isn’t a sure-fire way to do this in WebDAV. We had early attempts trying to use PROPPATCH as a secondary call after the file PUT, but it had compatibility and support issues, so it was removed.

---

<div class="post-metadata">

**Author:** ![mcdonaldmike68](https://forum.odrive.com/letter_avatar_proxy/v4/letter/m/eb8c5e/32.png) [@mcdonaldmike68](https://forum.odrive.com/u/mcdonaldmike68)\
**Post date:** [November 8, 2017, 4:04pm UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212/3 "2017-11-08T16:04:03Z")

</div>

Hey Tony,

Thanks for the quick response. Please see the below screenshot. Odrive is on the left and a mapped network drive is on the right to the same WebDAV connection. I created the connection (9:54 AM) this morning and synced the file (9:55 AM) directly after that and the date created/modified are showing as such. On the right, my direct WedDAV connection is showing a creation date of 1/10/2017 and a modification date of later the same day.

Based on your above response, this file should be showing the exact same dates since it has been synced, but the Odrive connection is showing the dates that I synced the file.

 ![image](https://odrive-discourse-backup.s3.dualstack.us-east-1.amazonaws.com/original/2X/9/900adb0d69dca3e67735b83adf34894c001b051e.png)

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [November 9, 2017, 9:21am UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212/4 "2017-11-09T09:21:00Z")

</div>

Hi @mcdonaldmike68,  
Do you know what WebDAV server is being used on the backend? For modtime we are just reading the modtime recorded on the object within WebDAV (the getlastmodified property).

If the file you are showing here was uploaded to the storage a while ago, then it should be showing a previous time, as recorded on the object and reported by the WebDAV server, unless getlastmodified is not reporting the correct information, or is not being returned.

---

<div class="post-metadata">

**Author:** ![mcdonaldmike68](https://forum.odrive.com/letter_avatar_proxy/v4/letter/m/eb8c5e/32.png) [@mcdonaldmike68](https://forum.odrive.com/u/mcdonaldmike68)\
**Post date:** [November 9, 2017, 3:13pm UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212/5 "2017-11-09T15:13:23Z")

</div>

Hey Tony,

We built our own WebDAV server and are hosting it ourselves. I have attached a text file detailing your PROPFIND request and our response for that particular folder and the GET request and response for that particular file. Is there something else that we should be sending?

I un-synced the drive and then synced it again before running a trace, so the dates are from today, and the PROPFIND response includes the correct Date/Time from January. I can provide a full trace if necessary.

[Odrive\_WebDAV\_Trace.txt](https://odrive-discourse-backup.s3.dualstack.us-east-1.amazonaws.com/original/2X/e/e68d92d1d0570f63d263ce3a97aa5cdd44451956.txt) (3.6 KB)

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [November 9, 2017, 3:43pm UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212/6 "2017-11-09T15:43:59Z")

</div>

Hi @mcdonaldmike68,  
Are you able to create a test account and send me the credentials over PM? I can take a closer look.

---

<div class="post-metadata">

**Author:** ![mcdonaldmike68](https://forum.odrive.com/letter_avatar_proxy/v4/letter/m/eb8c5e/32.png) [@mcdonaldmike68](https://forum.odrive.com/u/mcdonaldmike68)\
**Post date:** [November 9, 2017, 5:01pm UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212/7 "2017-11-09T17:01:29Z")

</div>

Hey Tony,

I feel dumb for asking this, but I cannot figure out how to PM you on this forum.

---

<div class="post-metadata">

**Author:** ![ericodrive](https://forum.odrive.com/user_avatar/forum.odrive.com/ericodrive/32/6023_2.png) [@ericodrive](https://forum.odrive.com/u/ericodrive)\
**Post date:** [November 9, 2017, 5:15pm UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212/8 "2017-11-09T17:15:10Z")

</div>

Hi @mcdonaldmike68

You can PM him directly by clicking on his username and selecting “Message”  
 ![37 AM](https://forum.odrive.com/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![mcdonaldmike68](https://forum.odrive.com/letter_avatar_proxy/v4/letter/m/eb8c5e/32.png) [@mcdonaldmike68](https://forum.odrive.com/u/mcdonaldmike68)\
**Post date:** [November 9, 2017, 5:16pm UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212/9 "2017-11-09T17:16:38Z")

</div>

@ericodrive,  
Thanks, that would make sense, but I don’t have that option…  
 ![image](https://forum.odrive.com/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![ericodrive](https://forum.odrive.com/user_avatar/forum.odrive.com/ericodrive/32/6023_2.png) [@ericodrive](https://forum.odrive.com/u/ericodrive)\
**Post date:** [November 9, 2017, 5:27pm UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212/10 "2017-11-09T17:27:29Z")

</div>

@mcdonaldmike68

Oh, well there’s your problem! Odd… Try clicking on the “M” at the top right, then hit the envelope and you should be able to create a new message from there, just start typing “Tony” in the to field and it should autocomplete to Tony @ odrive.

Quick question: is that message option there when you click on my name? If not let me know and I’ll PM you directly so we can get the creds over to Tony!

---

<div class="post-metadata">

**Author:** ![mcdonaldmike68](https://forum.odrive.com/letter_avatar_proxy/v4/letter/m/eb8c5e/32.png) [@mcdonaldmike68](https://forum.odrive.com/u/mcdonaldmike68)\
**Post date:** [November 9, 2017, 5:31pm UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212/11 "2017-11-09T17:31:57Z")

</div>

@ericodrive,

Unfortunately, I still don’t see an option from my messages page or by clicking on your name:

 ![image](https://odrive-discourse-backup.s3.dualstack.us-east-1.amazonaws.com/original/2X/9/91d5cf3a28c6a6f21dacfe566d888a6754812466.png)

Please go ahead and PM me and I’ll send over the login information.

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [November 10, 2017, 10:49pm UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212/12 "2017-11-10T22:49:45Z")

</div>

Hi @mcdonaldmike68,  
I checked this out and it looks like the issue is that your WebDAV server is returning `getlastmodified` as defined by RFC 3339, but we are expecting it as defined in RFC 2616, as per the WebDAV spec ([https://tools.ietf.org/html/rfc4918#section-15.7](https://tools.ietf.org/html/rfc4918#section-15.7)).

WebDAV is confusing in this way. `creationdate` is defined by RFC 3339 (ISO8601) ([https://tools.ietf.org/html/rfc4918#section-15.1](https://tools.ietf.org/html/rfc4918#section-15.1)), but `getlastmodified` is defined differently (I believe this is due to legacy compatibility with HTTP headers).

Since the format is not what we are expecting, we aren’t processing it. Do you know anything about the implementation choices for your server?

---

<div class="post-metadata">

**Author:** ![mcdonaldmike68](https://forum.odrive.com/letter_avatar_proxy/v4/letter/m/eb8c5e/32.png) [@mcdonaldmike68](https://forum.odrive.com/u/mcdonaldmike68)\
**Post date:** [November 13, 2017, 3:04pm UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212/13 "2017-11-13T15:04:07Z")

</div>

Hey Tony,

I have passed your feedback onto the developer who manages the WebDAV server and code and it sounds like this is something that he will be able to change and test this week. Thanks!

Question though, if we are returning creationdate in the correct format, should that not be displaying correctly? I understand that if the getlastmodified is in the incorrect format, you would not accept it, but I would assume that you could still show the creation date correctly? Or does it reject both dates if one is incorrectly formatted?

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [November 14, 2017, 9:11am UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212/14 "2017-11-14T09:11:53Z")

</div>

Hi @mcdonaldmike68,  
Thanks for the follow-up.  
odrive doesn’t process creationdate. It only uses getlastmodified.

---

<div class="post-metadata">

**Author:** ![mcdonaldmike68](https://forum.odrive.com/letter_avatar_proxy/v4/letter/m/eb8c5e/32.png) [@mcdonaldmike68](https://forum.odrive.com/u/mcdonaldmike68)\
**Post date:** [November 14, 2017, 3:01pm UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212/15 "2017-11-14T15:01:41Z")

</div>

@Tony,

Great, thanks. So we were able to apply the fix to a demo environment. Now, before I sync a file or folder, the date shows the correct mod date. When I sync a file the date remains correct, however, when I sync a folder, the date changes from the correct date to the date/time I synced the folder.

I would assume that this is due to the folder actually being created instead of being a placeholder, but am confused as to why it doesn’t retain the correct date. See the below screenshots of before syncing a folder and after syncing.

![image](https://forum.odrive.com/images/transparent.png)  
 ![image](https://forum.odrive.com/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [November 15, 2017, 12:46pm UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212/16 "2017-11-15T12:46:30Z")

</div>

Hi @mcdonaldmike68,  
That’s great that your dev was able to make the change!

For the folders, odrive doesn’t modify the modtime on the local folders like it does on files. This was a design decision made to facilitate some internal sync engine requirements, so it is a gap in reflection compared to files.

---

<div class="post-metadata">

**Author:** ![mcdonaldmike68](https://forum.odrive.com/letter_avatar_proxy/v4/letter/m/eb8c5e/32.png) [@mcdonaldmike68](https://forum.odrive.com/u/mcdonaldmike68)\
**Post date:** [November 15, 2017, 3:58pm UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212/17 "2017-11-15T15:58:27Z")

</div>

Ya, easy changes are great! Thanks for all of your help diagnosing this issue.

We love your product and recommend it to all of our clients that we host documents for. I understand that this was a design decision, but does your team have any intention of re-designing/changing this so that the folders show the correct date as well? I ask because it may be a sticking point for some of our clients and I would like to be able to tell them what your plans are.

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [November 16, 2017, 5:02am UTC](https://forum.odrive.com/t/webdav-connection-creation-modification-date-incorrect/3212/18 "2017-11-16T05:02:10Z")

</div>

Hi @mcdonaldmike68,  
I submitted a request for this, but I don’t know if/when it could be implemented. I will certainly update you if it it is given a green light, though.

Thanks for the follow-up!
