Reading timestamp

Dear rooters,
I am attemting to read timestamp from a rootfile but I get back the time
of the system instead.
Any ideas.
p.s. below is a sample of the code.

#include <TTimeStamp.h>

void test(){
TFile *file = new TFile(“FILENAME.root”);
TTree tree = (TTree) file->Get(“TREENAME”);
TTimeStamp *timstmp = 0;
tree->SetMakeClass(1);
//reading time branch from rootfile
tree->SetBranchAddress(“timestamp”, &timstmp);

for(int i=0;i<10;i++){
tree->GetEntry(i);
cout << timstmp->AsString(“C”)<< endl;

}
file->Close();

}

Same as [url]TTimeStamp and system clock
We can reproduce the problem. Investigating…