Commit aac8fc0b authored by ssalve's avatar ssalve

Sarita: Done changes in UtilMethods for dateTime method on 25 SEPT 2018

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@191152 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7b9d0601
...@@ -589,10 +589,12 @@ public class UtilMethods { ...@@ -589,10 +589,12 @@ public class UtilMethods {
timeStr = sqlTime.toString(); timeStr = sqlTime.toString();
timeStrArr = timeStr.split(":"); timeStrArr = timeStr.split(":");
rightNow.setTime(sd); rightNow.setTime(sd);
rightNow.set(Calendar.HOUR , Integer.parseInt(timeStrArr[0])); //Commented by sarita as it giving next day on 25 SEPT 2018 [START]
/*rightNow.set(Calendar.HOUR , Integer.parseInt(timeStrArr[0]));
rightNow.set(Calendar.MINUTE,Integer.parseInt(timeStrArr[1])); rightNow.set(Calendar.MINUTE,Integer.parseInt(timeStrArr[1]));
rightNow.clear(Calendar.SECOND); rightNow.clear(Calendar.SECOND);
rightNow.clear(Calendar.MILLISECOND); rightNow.clear(Calendar.MILLISECOND);*/
//Commented by sarita as it giving next day on 25 SEPT 2018 [END]
today = rightNow.getTime(); today = rightNow.getTime();
ts = new java.sql.Timestamp(today.getTime()); ts = new java.sql.Timestamp(today.getTime());
} }
...@@ -615,10 +617,12 @@ public class UtilMethods { ...@@ -615,10 +617,12 @@ public class UtilMethods {
timeStr = sqlTime.toString(); timeStr = sqlTime.toString();
timeStrArr = timeStr.split(":"); timeStrArr = timeStr.split(":");
rightNow.setTime(ud); rightNow.setTime(ud);
rightNow.set(Calendar.HOUR , Integer.parseInt(timeStrArr[0])); //Commented by sarita as it giving next day on 25 SEPT 2018 [START]
/*rightNow.set(Calendar.HOUR , Integer.parseInt(timeStrArr[0]));
rightNow.set(Calendar.MINUTE,Integer.parseInt(timeStrArr[1])); rightNow.set(Calendar.MINUTE,Integer.parseInt(timeStrArr[1]));
rightNow.clear(Calendar.SECOND); rightNow.clear(Calendar.SECOND);
rightNow.clear(Calendar.MILLISECOND); rightNow.clear(Calendar.MILLISECOND);*/
//Commented by sarita as it giving next day on 25 SEPT 2018 [END]
today = rightNow.getTime(); today = rightNow.getTime();
ts = new java.sql.Timestamp(today.getTime()); ts = new java.sql.Timestamp(today.getTime());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment