diff --git a/readers/Reader.java b/readers/Reader.java index 3b3e406..ce1203c 100644 --- a/readers/Reader.java +++ b/readers/Reader.java @@ -2,6 +2,7 @@ package readers; import java.io.IOException; import java.io.InputStreamReader; import java.nio.file.Path; +import java.time.ZonedDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -348,7 +349,7 @@ public abstract class Reader{ public String toStringWithScreenshot() { return "{\"game\":\""+getClass().getSimpleName()+"\",\"difficulty\":" + difficulty + ", \"maxcombo\":" + maxcombo + ", \"notes\":" + Arrays.toString(notes) + ", \"other\":" + other + ", \"pct\":" + pct + ", \"rank\":" + rank + ", \"score\":" + score + ", \"title\":\"" + title.replaceAll(Pattern.quote("\n"),"\\\\n") - + "\", \"screenshot\":\""+result_screenshot+"\"}"; + + "\", \"screenshot\":\""+result_screenshot+"\", \"date\":"+ZonedDateTime.now().toEpochSecond()+"}"; } public int getScore() { return score;