mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 09:36:04 +00:00
Fixed ISSUE #169: "Hudson's RSS feads do not validate"
Submitted by: Vladimir Sizikov git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1244 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
b32b516e44
commit
eb82dd44ac
3 files changed
+12
-3
No files matched your search
@@ -13,6 +13,7 @@ import java.io.OutputStream;
|
||||
import java.io.OutputStreamWriter;
|
||||
import java.net.InetAddress;
|
||||
import java.net.UnknownHostException;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.ResourceBundle;
|
||||
import java.util.StringTokenizer;
|
||||
@@ -345,6 +346,10 @@ public class Util {
|
||||
|
||||
public static final SimpleDateFormat XS_DATETIME_FORMATTER = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
|
||||
|
||||
// Note: RFC822 dates must not be localized!
|
||||
public static final SimpleDateFormat RFC822_DATETIME_FORMATTER
|
||||
= new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss Z", Locale.US);
|
||||
|
||||
static {
|
||||
XS_DATETIME_FORMATTER.setTimeZone(new SimpleTimeZone(0,"GMT"));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user