diff --git a/bin/Co2Data.class b/bin/Co2Data.class index cac907c..db6525b 100644 Binary files a/bin/Co2Data.class and b/bin/Co2Data.class differ diff --git a/bin/Date.class b/bin/Date.class index f4d3eb4..204980f 100644 Binary files a/bin/Date.class and b/bin/Date.class differ diff --git a/src/Co2Data.java b/src/Co2Data.java index 7936293..f717dba 100644 --- a/src/Co2Data.java +++ b/src/Co2Data.java @@ -16,7 +16,7 @@ public class Co2Data { public Co2Data(Date date, int co2Level) { this.date = date; this.co2Level = co2Level; - this.time = date.getHour() * 100 + date.getMinute(); + this.time = (date.getHour() * 100 + 100) + date.getMinute(); } // #region Getters and Setters diff --git a/src/Date.java b/src/Date.java index 5e71ded..7242306 100644 --- a/src/Date.java +++ b/src/Date.java @@ -72,6 +72,7 @@ public class Date { // #region String Representation // Method to print date in a readable format + @Override public String toString() { return String.format("%04d-%02d-%02d %02d:%02d", year, month, day, hour, minute); }