From 0b879d044e1131373b03691f682562a57dd10f2a Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sat, 20 Aug 2022 20:05:43 -0500 Subject: [PATCH] Include the date of record submission Co-authored-by: sigonasr2 --- readers/Reader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;