jeeejay
14 years agoContributor
Bug in aqFileSystem["GetFolderInfo"]
Hi,
I am using TestComplete 6.53 and we recently upgraded our scripts to make use of the methods offered by aq* instead of Utilities collection. I noticed a bug when I was trying to extract the 'Create Date' of a folder on the hard drive. The time returned is always 7 hours ahead.
To reproduce, please create a folder named 'New Folder' under C Drive and run the following function.
function NewFolderDate()
{
var newFolder = "C:\\New Folder";
Log["Message"](aqFileSystem["GetFolderInfo"](newFolder)["DateCreated"]);
Log["Message"](Sys["OleObject"]("Scripting.FileSystemObject")["GetFolder"](newFolder)["DateCreated"]);
}
Really looking forward to hear from you.
Regards,
GJ
I am using TestComplete 6.53 and we recently upgraded our scripts to make use of the methods offered by aq* instead of Utilities collection. I noticed a bug when I was trying to extract the 'Create Date' of a folder on the hard drive. The time returned is always 7 hours ahead.
To reproduce, please create a folder named 'New Folder' under C Drive and run the following function.
function NewFolderDate()
{
var newFolder = "C:\\New Folder";
Log["Message"](aqFileSystem["GetFolderInfo"](newFolder)["DateCreated"]);
Log["Message"](Sys["OleObject"]("Scripting.FileSystemObject")["GetFolder"](newFolder)["DateCreated"]);
}
Really looking forward to hear from you.
Regards,
GJ