$Date keyword expansion seems to pick the wrong value

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
lassevk
Posts: 19
Joined: Fri Apr 16, 2004 2:02 am

$Date keyword expansion seems to pick the wrong value

Post by lassevk » Sat Oct 30, 2004 1:21 pm

When I check in a file with $Date keyword in it, it is expanded like this:

$Date: 2004-10-30 21:08:12+02:00 $

However, that was the previous checkin. The checkin I just performed sets the time of the file in the Vault database to be the same date, only 21:12:57.

I guess this value is updated before the file is checked in.

Is this supposed to work like that or should it actually have picked 21:12:57 ?

Curious enough, if I check out the file, do a minor adjustment, and then check it back in, the time in the $Date value is now:

$Date: 2004-10-30 21:12:47+02:00 $

10 second difference here between the previous time in Vault and the one reported in the file. In any case, this checkin was done at 21:20.

Is this a bug or is it just me misunderstanding the purpose of this keyword ?

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Mon Nov 01, 2004 10:09 am

Yes, this looks like a bug. It looks like it is using the modification time as teh date, and not the checkin time.

We'll log this as a bug - thanks for the report.

Post Reply