title: Spring batch is storing epoch time in database
body: <p>When i ran my spring batch job it is storing its job parameters details in <strong>BATCH_JOB_EXECUTION_PARAMS</strong> table in DB, but i saw a weird thing at <strong>DATE_VAL</strong> column in the <strong>BATCH_JOB_EXECUTION_PARAMS</strong> table. Spring batch is inserting epoch time for all job parameters.</p>
  
  <p>I looked at the class file in java decompiler and i found</p>
  
  <pre><code>if (type == JobParameter.ParameterType.STRING) {
    args = new Object[] { executionId, key, type, value, new Timestamp(0L), Long.valueOf(0L), Double.valueOf(0.0D), identifyingFlag };
  }
  </code></pre>
  
  <p>in the above code they are creating a object for job parameter with "<strong>new Timestamp(0L)</strong>" i.e, epoch time. </p>
  
  <pre><code>INSERT into %PREFIX%JOB_EXECUTION_PARAMS(JOB_EXECUTION_ID, KEY_NAME, TYPE_CD, STRING_VAL, DATE_VAL, LONG_VAL, DOUBLE_VAL, IDENTIFYING) values (?, ?, ?, ?, ?, ?, ?, ?)"), args, argTypes)
  </code></pre>
  
  <p>The above insert statement accepts this args Object and inserting job parameters into DB. I think this is causing the issue of inserting epoch time in to DB.</p>