migrating to streams, working on time zone updates for daily scrobbles
This commit is contained in:
parent
d5e9769157
commit
95177c77f4
@ -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>
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user