|
|
@ -379,10 +379,10 @@ void SysInfoConduit::syncInfo()
|
|
|
|
time_t lastsync = user.getLastSyncDate();
|
|
|
|
time_t lastsync = user.getLastSyncDate();
|
|
|
|
TQDateTime qlastsync;
|
|
|
|
TQDateTime qlastsync;
|
|
|
|
qlastsync.setTime_t(lastsync);
|
|
|
|
qlastsync.setTime_t(lastsync);
|
|
|
|
fValues[CSL1("lastsync")] = qlastsync.toString(Qt::LocalDate);
|
|
|
|
fValues[CSL1("lastsync")] = qlastsync.toString(TQt::LocalDate);
|
|
|
|
lastsync = user.getLastSuccessfulSyncDate();
|
|
|
|
lastsync = user.getLastSuccessfulSyncDate();
|
|
|
|
qlastsync.setTime_t(lastsync);
|
|
|
|
qlastsync.setTime_t(lastsync);
|
|
|
|
fValues[CSL1("lastsuccsync")] = qlastsync.toString(Qt::LocalDate);
|
|
|
|
fValues[CSL1("lastsuccsync")] = qlastsync.toString(TQt::LocalDate);
|
|
|
|
fValues[CSL1("lastsyncpc")] = TQString::number(user.getLastSyncPC());
|
|
|
|
fValues[CSL1("lastsyncpc")] = TQString::number(user.getLastSyncPC());
|
|
|
|
keepParts.append(CSL1("sync"));
|
|
|
|
keepParts.append(CSL1("sync"));
|
|
|
|
} else removeParts.append(CSL1("sync"));
|
|
|
|
} else removeParts.append(CSL1("sync"));
|
|
|
@ -470,7 +470,7 @@ void SysInfoConduit::writeFile()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
FUNCTIONSETUP;
|
|
|
|
FUNCTIONSETUP;
|
|
|
|
|
|
|
|
|
|
|
|
fValues[CSL1("date")] = TQDateTime::currentDateTime().toString(Qt::LocalDate);
|
|
|
|
fValues[CSL1("date")] = TQDateTime::currentDateTime().toString(TQt::LocalDate);
|
|
|
|
|
|
|
|
|
|
|
|
TQString output;
|
|
|
|
TQString output;
|
|
|
|
// Open the template file
|
|
|
|
// Open the template file
|
|
|
@ -563,11 +563,11 @@ void SysInfoConduit::writeFile()
|
|
|
|
newpatt.replace(CSL1("%6"), TQString::number(dbi.version));
|
|
|
|
newpatt.replace(CSL1("%6"), TQString::number(dbi.version));
|
|
|
|
TQDateTime tm;
|
|
|
|
TQDateTime tm;
|
|
|
|
tm.setTime_t(dbi.createDate);
|
|
|
|
tm.setTime_t(dbi.createDate);
|
|
|
|
newpatt.replace(CSL1("%7"), tm.toString(Qt::LocalDate));
|
|
|
|
newpatt.replace(CSL1("%7"), tm.toString(TQt::LocalDate));
|
|
|
|
tm.setTime_t(dbi.modifyDate);
|
|
|
|
tm.setTime_t(dbi.modifyDate);
|
|
|
|
newpatt.replace(CSL1("%8"), tm.toString(Qt::LocalDate));
|
|
|
|
newpatt.replace(CSL1("%8"), tm.toString(TQt::LocalDate));
|
|
|
|
tm.setTime_t(dbi.backupDate);
|
|
|
|
tm.setTime_t(dbi.backupDate);
|
|
|
|
newpatt.replace(CSL1("%9"), tm.toString(Qt::LocalDate));
|
|
|
|
newpatt.replace(CSL1("%9"), tm.toString(TQt::LocalDate));
|
|
|
|
|
|
|
|
|
|
|
|
dbstring.append(newpatt);
|
|
|
|
dbstring.append(newpatt);
|
|
|
|
}
|
|
|
|
}
|
|
|
|