Date-Time problem  
Author Message
Hisan





PostPosted: Visual Studio Source Control and SourceSafe, Date-Time problem Top

Hi

Few days ago i uploaded some files in VSS which were supposed to be uploaded earlier, so i just changed back my system time and date to my desired date and then uploaded the file in VSS,the date and time along side that file is fine(means its the same date on which i uploaded the files after changing the dates of my pc),but when i check the history of the file it shows the actual date of file uploaded i mean it doesnt show the same date and time that was supposed to...why is it so and is there any seperate date and time mechanism of VSS or VSS takes the systems date and time

Regards,

Hisan




Visual Studio10  
 
 
Alin Constantin - MSFT





PostPosted: Visual Studio Source Control and SourceSafe, Date-Time problem Top

It is likely you used VSS2005, which writes the time in the database using the server's local time, not the client local time (exactly to prevent scenario like yours when client's times are not correctly synchronized). By "server" here I understand the computer hosting the VSS database.

That being said, I would not mess with the computer times to force VSS "checkin" a file at earlier dates and times. While it may be possible to make VSS display earlier dates/times (by using VSS2005 and messing up with the server's time, or by using VSS6 and messing up with the client time), the checkin records in history will still end up in correct chronological order of their real checkins, which may cause other problems in the future.

Alin