Skip to content

Commit

Permalink
No time zone
Browse files Browse the repository at this point in the history
  • Loading branch information
oscargus committed Jul 25, 2016
1 parent 0ee7133 commit c437089
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/main/java/net/sf/jabref/logic/net/Cookie.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ class Cookie {
private LocalDateTime expires;
private String path;

private final DateTimeFormatter whiteSpaceFormat = DateTimeFormatter.ofPattern("EEE, dd MMM yyyy HH:mm:ss zzz",
private final DateTimeFormatter whiteSpaceFormat = DateTimeFormatter.ofPattern("EEE, dd MMM yyyy HH:mm:ss 'GMT'",
Locale.ROOT);
private final DateTimeFormatter hyphenFormat = DateTimeFormatter.ofPattern("EEE, dd-MMM-yyyy HH:mm:ss zzz",
private final DateTimeFormatter hyphenFormat = DateTimeFormatter.ofPattern("EEE, dd-MMM-yyyy HH:mm:ss 'GMT'",
Locale.ROOT);


Expand All @@ -45,10 +45,8 @@ class Cookie {
public Cookie(URI uri, String header) {
String[] attributes = header.split(";");
String nameValue = attributes[0].trim();
this.name =
nameValue.substring(0, nameValue.indexOf('='));
this.value =
nameValue.substring(nameValue.indexOf('=') + 1);
this.name = nameValue.substring(0, nameValue.indexOf('='));
this.value = nameValue.substring(nameValue.indexOf('=') + 1);
this.path = "/";
this.domain = uri.getHost();

Expand Down

0 comments on commit c437089

Please sign in to comment.