public static Date parseRFC822(String date) {
        try {
            return new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss ZZZZZ").parse(date.trim());
        } catch (ParseException e) {
            throw bomb(e);
        }
    }
@Test
    public void shouldBeAbleToParseRFC822Dates() throws Exception {
        Date date = DateUtils.parseRFC822("Tue, 09 Dec 2008 18:56:14 +0800");
        assertThat(date, is(new DateTime("2008-12-09T18:56:14+08:00").toDate()));
    }