[Timetable] Fix adding NO_LESSONS in Mobidziennik. Change ID generation.

This commit is contained in:
Kuba Szczodrzyński
2019-11-11 19:14:02 +01:00
parent 124437fd73
commit eb0540b5cb
4 changed files with 35 additions and 4 deletions

View File

@ -132,6 +132,13 @@ public class Date implements Comparable<Date> {
return year * 10000 + month * 100 + day;
}
public static Date fromValue(int value) {
int year = value / 10000;
int month = (value-year*10000) / 100;
int day = (value-year*10000-month*100);
return new Date(year, month, day);
}
public String getStringValue()
{
return Integer.toString(getValue());