Michele Di Cosmo
Michele Di Cosmo

Reputation: 591

How to force Team Foundation Server SDK / API check-in to a given date?

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

Answers (1)

Richard Berg
Richard Berg

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

Related Questions