title: 24 hour clock not working in dateformat android
body: <p>i have made an application in which i need to perform date conversion in 24 hour format.
  Here is my code.</p>
  
  <pre><code>GregorianCalendar c = new GregorianCalendar(Locale.GERMANY);
              c.set(2011, 04, 29,0,0,0);
              String cdate = (String) DateFormat.format("yyyy-MM-dd HH:mm:ss", c.getTime());
              Log.i(tag,cdate);
  </code></pre>
  
  <p>now when i check my LOG here is the output:</p>
  
  <p>04-22 12:44:15.956: INFO/GridCellAdapter(30248): 2011-04-29 HH:00:00</p>
  
  <p>why is the hour field not getting set. i have explicitly passed 0 when i was making the calendar object, still it is display HH in the LOG.
  i have tried while passing hh, that is being set, but HH is not being set.</p>
  
  <p>what could be the problem?</p>
  
  <p>thank you in advance.</p>