TfsVersion GetVersion Elapsed uses DateTime.Now

Oct 7, 2009 at 8:27 AM

while playing around with the TfsVersion GetVersion task I observed that the "Elapsed" mode uses the current date/time to calculate the number of days since StartDate. Shouldn't this be the diff between the TfsBuildNumber date and the StartDate?

This could be a problem when a build occurs aroung midnight, e.g. TFS defines the build number before midnight and the TfsVersion tasks runs just after midnight.