Reputation: 591
I would like to force the date of the check-in in TFS. Is there any way?
I got the following code, but could not find any way to pass a check-in date:
Dim tfsChangeSet = tfsVersionControl.Workspace.CheckIn(tfsPendingChanges,
user,
tfsComment,
tfsNote,
Nothing,
Nothing)
Upvotes: 1
Views: 1098
Reputation: 20782
This is not possible. Checkin Date is determined by the server. Best you can do is dynamically adjust the clock on the server machine, but that's highly unsupported. If you change it in such a way that TFS's internal assumptions are no longer valid, you might render the database unusable.
Upvotes: 2