version 0.3.0-Beta
This commit is contained in:
parent
23f75cae4f
commit
ce44ee5d17
@ -5,7 +5,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group 'com.wasteinformationserver'
|
group 'com.wasteinformationserver'
|
||||||
version '0.2.1-Beta'
|
version '0.3.0-Beta'
|
||||||
|
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ public class MqttService {
|
|||||||
do {
|
do {
|
||||||
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
|
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
long timestamp = formatter.parse(result.getString("pickupdate")).getTime();
|
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);
|
Log.debug("timestamp is :" + timestamp);
|
||||||
|
|
||||||
if (timestamp == timestampnow || timestamp == timestampnow + 86400000) { // 86400000 == one day
|
if (timestamp == timestampnow || timestamp == timestampnow + 86400000) { // 86400000 == one day
|
||||||
|
Loading…
Reference in New Issue
Block a user