Commits

Thinkofname authored 0165b6e1c77
Force english for date parsing
No tags

src/main/java/org/spigotmc/builder/SpigotPatch.java

Modified
1 1 package org.spigotmc.builder;
2 2
3 3 import lombok.Getter;
4 4 import org.eclipse.jgit.lib.PersonIdent;
5 5
6 6 import java.io.BufferedReader;
7 7 import java.io.File;
8 8 import java.io.FileReader;
9 9 import java.text.DateFormat;
10 10 import java.text.SimpleDateFormat;
11 11 import java.util.Date;
12 +import java.util.Locale;
12 13
13 14 @Getter
14 15 public class SpigotPatch
15 16 {
16 17
17 - private static final DateFormat format = new SimpleDateFormat( "EEE, d MMM yyyy HH:mm:ss Z" );
18 + private static final DateFormat format = new SimpleDateFormat( "EEE, d MMM yyyy HH:mm:ss Z", Locale.ENGLISH );
18 19
19 20 private PersonIdent author;
20 21 private String message;
21 22
22 23 public SpigotPatch(File patch) throws Exception
23 24 {
24 25 BufferedReader reader = new BufferedReader( new FileReader( patch ) );
25 26 try
26 27 {
27 28 String hash = null;

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut