1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 12:56:49 +01:00

Bangle.js:actTrk:refactor compileDateStringFromCal

This commit is contained in:
Ganblejs 2024-03-11 21:19:36 +01:00 committed by José Rebelo
parent cd8fad29b1
commit d94ac25cd1

View File

@ -777,13 +777,7 @@ class BangleJSActivityTrack {
int month = date.get(Calendar.MONTH);
int day = date.get(Calendar.DATE);
String yearString = String.valueOf(year);
String monthString = String.valueOf(month);
if (month<10) monthString = "0" + monthString;
String dayString = String.valueOf(day);
if (day<10) dayString = "0" + dayString;
return yearString + monthString + dayString;
return String.format("%d%02d%02d", year, month, day);
}
private static void writeToRecorderCSV(String lines, File dir, String filename) {