Commit fbd363fe authored by kdabholkar's avatar kdabholkar

commit for changes in timestamp


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@106313 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bfc92de5
...@@ -361,9 +361,18 @@ public class GSTRWebServiceDao extends ValidatorEJB { ...@@ -361,9 +361,18 @@ public class GSTRWebServiceDao extends ValidatorEJB {
String dbDateStr = ""; String dbDateStr = "";
if(dateStr != null && !dateStr.equals("")) if(dateStr != null && !dateStr.equals(""))
{ {
dbDateStr = (new E12GenericUtility()).getValidDateTimeString(dateStr, (new E12GenericUtility()).getApplDateTimeFormat(), (new E12GenericUtility()).getDBDateTimeFormat()); if(dbDateStr.indexOf(":") != -1)
{
return java.sql.Timestamp.valueOf(dbDateStr);
}
else
{
dbDateStr =(new E12GenericUtility()).getValidDateTimeString(dateStr, (new E12GenericUtility()).getApplDateTimeFormat(), (new E12GenericUtility()).getDBDateTimeFormat());
return java.sql.Timestamp.valueOf(dbDateStr); return java.sql.Timestamp.valueOf(dbDateStr);
} }
}
else else
{ {
return null; return null;
......
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