File Date/Time changed to UTC to eliminate Daylight Savings Time Issue
This commit is contained in:
@@ -60,7 +60,7 @@ namespace DataLoader
|
||||
// exists for the rodb and with the same dts as the file.
|
||||
FileInfo fi = new FileInfo(fstPath + @"\ro.fst");
|
||||
|
||||
ROFst rofst = ROFst.GetByRODbID_DTS(rodb.RODbID, fi.LastWriteTime);
|
||||
ROFst rofst = ROFst.GetByRODbID_DTS(rodb.RODbID, fi.LastWriteTimeUtc);
|
||||
if (rofst == null)
|
||||
{
|
||||
// Next read in the rofst & make the rofst record.
|
||||
@@ -71,7 +71,7 @@ namespace DataLoader
|
||||
//r.Close();
|
||||
fsIn.Close();
|
||||
// get the date time stamp, need to create the record with the file's dts.
|
||||
rofst = ROFst.MakeROFst(rodb, ab, null, fi.LastWriteTime, "Migration");
|
||||
rofst = ROFst.MakeROFst(rodb, ab, null, fi.LastWriteTimeUtc, "Migration");
|
||||
}
|
||||
// Next hook the rofst to the docversion using the associations table.
|
||||
DocVersionAssociation dva = docver.DocVersionAssociations.Add(rofst);
|
||||
@@ -145,7 +145,7 @@ namespace DataLoader
|
||||
frmMain.Status = "Processing Image " + fname;
|
||||
// if the roimage record exists, don't create a new one...
|
||||
ROImage roImg = null;
|
||||
using (roImg = ROImage.GetByRODbID_FileName_DTS(rodb.RODbID, imgname, fi.LastWriteTime))
|
||||
using (roImg = ROImage.GetByRODbID_FileName_DTS(rodb.RODbID, imgname, fi.LastWriteTimeUtc))
|
||||
{
|
||||
if (roImg == null)
|
||||
{
|
||||
@@ -155,7 +155,7 @@ namespace DataLoader
|
||||
byte[] ab = r.ReadBytes((int)fsIn.Length);
|
||||
r.Close();
|
||||
fsIn.Close();
|
||||
roImg = ROImage.MakeROImage(rodb, imgname, ab, null, fi.LastWriteTime, "Migration");
|
||||
roImg = ROImage.MakeROImage(rodb, imgname, ab, null, fi.LastWriteTimeUtc, "Migration");
|
||||
}
|
||||
// see if it's already linked to the current rofst..
|
||||
Figure figure = Figure.GetByROFstID_ImageID(rofstinfo.ROFstID, roImg.ImageID);
|
||||
|
Reference in New Issue
Block a user