title: Misbehaving of the date parsing in SimpleDateFormat
body: <p>I have a java class inside the jar file that is in a JBoss server which invoked through a bash file as follows.</p>
  
  <pre><code>java -cp /com/site/domain/TimeFormatter.jar packOne.subPack.Test
  </code></pre>
  
  <p>But I got an error when parsing the below date in there.</p>
  
  <pre><code>java.text.ParseException: Unparseable date: "Wed, 29 Jan 2014 21:00:00 GMT"
      at java.text.DateFormat.parse(DateFormat.java:335)
  </code></pre>
  
  <p><strong>Java CODE :</strong></p>
  
  <pre><code>Date date = new SimpleDateFormat("EEE, dd MMM yyyy hh:mm:ss z").parse("Sun, 26 Jan 2014 21:00:00 GMT");
  System.out.println("main().date : " + date);
  </code></pre>
  
  <p>What am I missing here? I read many posts about the misbehaving of the SimpleDateFormat. But this is some thing that I didn't find among those posts.</p>
  
  <p>Note : I thought this is because of the java version change or some thing. But, I executed the same program with different versions in my machine. It worked perfectly.
  Server java version "1.5.0_22"</p>
  
  <p><strong>locale details :</strong></p>
  
  <pre><code>LANG=en_US.UTF-8
  LC_CTYPE="en_US.UTF-8"
  LC_NUMERIC="en_US.UTF-8"
  LC_TIME="en_US.UTF-8"
  LC_COLLATE="en_US.UTF-8"
  LC_MONETARY="en_US.UTF-8"
  LC_MESSAGES="en_US.UTF-8"
  LC_PAPER="en_US.UTF-8"
  LC_NAME="en_US.UTF-8"
  LC_ADDRESS="en_US.UTF-8"
  LC_TELEPHONE="en_US.UTF-8"
  LC_MEASUREMENT="en_US.UTF-8"
  LC_IDENTIFICATION="en_US.UTF-8"
  LC_ALL=
  </code></pre>