altro tentativo fix dataora...

This commit is contained in:
Samuele E. Locatelli
2018-12-06 00:26:35 +01:00
parent 5826802c3b
commit b3fef66876
2 changed files with 4 additions and 4 deletions
Vendored
+1 -1
View File
@@ -10,7 +10,7 @@ pipeline {
steps {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
withEnv(['NEXT_BUILD_NUMBER=645']) {
withEnv(['NEXT_BUILD_NUMBER=646']) {
// env.versionNumber = VersionNumber(versionNumberString : '3.2.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
env.versionNumber = VersionNumber(versionNumberString : '3.2.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
env.APP_NAME = 'SteamWareLib'
+3 -3
View File
@@ -238,12 +238,12 @@ namespace SteamWare
redVal = objCacheObj("lastUpdateAppConf").ToString();
try
{
answ = DateTime.ParseExact(redVal, format, provider);
answ = Convert.ToDateTime(redVal);
}
catch (Exception exc)
{
answ = Convert.ToDateTime(redVal);
logger.lg.scriviLog(string.Format("Errore ParseExact lastUpdateAppConf ({0}){1}{2}", redVal, Environment.NewLine, exc), tipoLog.EXCEPTION);
answ = DateTime.ParseExact(redVal, format, provider);
logger.lg.scriviLog(string.Format("Errore convert, tento ParseExact lastUpdateAppConf ({0}){1}{2}", redVal, Environment.NewLine, exc), tipoLog.EXCEPTION);
}
}
}