title: Time zone offset format +HH:mm versus +HHmm
body: <p>I need to communicate with one application that is not implementing the full ISO 8601 and only accept the format +HH:mm for time zone offset.</p>
  
  <p>Android seems to only generate the format +HHmm (no ':' character in between hours and minutes) with the 'z' in SampleDateFormat.</p>
  
  <p>Code example:</p>
  
  <pre><code>SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
  String str = String.format(Locale.US, "%s", sdf.format(new Date(0)));
  </code></pre>
  
  <p>generates: 1970-01-01T00:00+0000</p>
  
  <p>and I would like to generate: 1970-01-01T00:00+00:00</p>
  
  <p>Is there any simple way of producing the desirable output without writing the code to manipulate the string?</p>
  
  <p>Thanks,
  Luis</p>