title: Display current time in 12 hour format with AM/PM
body: <p>Currently the time displayed as <strong>13:35 PM</strong> 
  However <strong>I want to display as 12 hour format with AM/PM, i.e 1:35 PM instead of 13:35 PM</strong></p>
  
  <p>The current code is as below </p>
  
  <pre><code>private static final int FOR_HOURS = 3600000;
  private static final int FOR_MIN = 60000;
  public String getTime(final Model model) {
      SimpleDateFormat formatDate = new SimpleDateFormat("HH:mm a");
      formatDate.setTimeZone(userContext.getUser().getTimeZone());
      model.addAttribute("userCurrentTime", formatDate.format(new Date()));
      final String offsetHours = String.format("%+03d:%02d", userContext.getUser().getTimeZone().getRawOffset()
      / FOR_HOURS, Math.abs(userContext.getUser().getTimeZone().getRawOffset() % FOR_HOURS / FOR_MIN));
      model.addAttribute("offsetHours",
                  offsetHours + " " + userContext.getUser().getTimeZone().getDisplayName(Locale.ROOT));
      return "systemclock";
  }
  </code></pre>