title: Mongo Db date time insertion
body: <p>I am newer in mongoDb trying to insert current date time using Java program. I am using joda library to to format the date into ISOdate format and want to store the current date and time as it is.But after doing insertion it is showing 1 hour delay time from my current time in data base.</p>
  
  <p>Here is my code.</p>
  
  <pre><code>    DateTimeFormatter parser=ISODateTimeFormat.dateHourMinuteSecond();
      Instant inst=new Instant();
      DateTime result=parser.parseDateTime(parser.print(inst));
      dbObject.put(KeyConstants.CREATED_ON,result.toDate());
      dbObject.put(KeyConstants.UPDATED_ON,result.toDate());
      collection.insert(dbObject); 
  </code></pre>
  
  <p>I am inserting current date and time :ISODate("2014-08-01T05:58:14Z")<br>
  But in data base it showing : ISODate("2014-08-01T06:58:14Z")</p>