migrating to streams, working on time zone updates for daily scrobbles

This commit is contained in:
aj 2018-05-26 17:13:28 +01:00
parent d5e9769157
commit 95177c77f4
3 changed files with 3 additions and 7 deletions

View File

@ -50,7 +50,7 @@
</VBox>
</bottom>
<center>
<TabPane fx:id="tabPane" prefHeight="200.0" prefWidth="200.0" side="LEFT" BorderPane.alignment="CENTER">
<TabPane fx:id="tabPane" prefHeight="200.0" prefWidth="200.0" side="BOTTOM" BorderPane.alignment="CENTER">
<tabs>
<Tab fx:id="tabHome" closable="false" text="home">
<content>

View File

@ -192,7 +192,7 @@ public class URLBuilder {
day = Integer.toString(now.getDayOfMonth());
}
String date = String.format("%d-%s-%sT07:00:00.00Z", now.getYear(), month, day);
String date = String.format("%d-%s-%sT00:00:00.00Z", now.getYear(), month, day);
// System.out.println(date);
// long midnight = Instant.parse("2018-04-05T07:00:00.00Z").getEpochSecond();
long midnight = Instant.parse(date).getEpochSecond();

View File

@ -100,10 +100,6 @@ public class FMObjList extends ArrayList<FMObj> implements Comparable<FMObjList>
}
public void refresh() {
int counter;
for (counter = 0; counter < size(); counter++) {
get(counter).refresh();
}
stream().forEach(FMObj::refresh);
}
}