I updated a file using the client API:
FilesResource.UpdateMediaUpload request;
request = Service.Files.Update(new Google.Apis.Drive.v3.Data.File(), id, stream);
request.Upload();
var Modified = request.ResponseBody.ModifiedTime;
I then requested for the same file after:
var modified = Service.Files.Get(id).Execute().ModifiedTime
These dates are milliseconds out of sync, i.e.:
modified.ticks = 636284845226980000
Modified.ticks = 636284845229162448
Modified.time - modified.time = 218ms
Why is this happening, and how can I rectify this?
It's happening because the file meta data is being updated asynchronously and there is nothing you can do to rectify it because it isn't a fault.
If you explain why this causes you a problem, there may be an alternative approach. Eg:-