version 0.3.0-Beta

This commit is contained in:
lukas-heiligenbrunner 2020-01-16 21:24:21 +01:00
parent 23f75cae4f
commit ce44ee5d17
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ plugins {
}
group 'com.wasteinformationserver'
version '0.2.1-Beta'
version '0.3.0-Beta'
sourceCompatibility = 1.8

View File

@ -111,7 +111,7 @@ public class MqttService {
do {
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
long timestamp = formatter.parse(result.getString("pickupdate")).getTime();
long timestampnow = formatter.parse(formatter.format(new Date())).getTime(); // todo more fancy
long timestampnow = formatter.parse(formatter.format(new Date())).getTime();
Log.debug("timestamp is :" + timestamp);
if (timestamp == timestampnow || timestamp == timestampnow + 86400000) { // 86400000 == one day