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>
|
</VBox>
|
||||||
</bottom>
|
</bottom>
|
||||||
<center>
|
<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>
|
<tabs>
|
||||||
<Tab fx:id="tabHome" closable="false" text="home">
|
<Tab fx:id="tabHome" closable="false" text="home">
|
||||||
<content>
|
<content>
|
||||||
|
@ -192,7 +192,7 @@ public class URLBuilder {
|
|||||||
day = Integer.toString(now.getDayOfMonth());
|
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);
|
// System.out.println(date);
|
||||||
// long midnight = Instant.parse("2018-04-05T07:00:00.00Z").getEpochSecond();
|
// long midnight = Instant.parse("2018-04-05T07:00:00.00Z").getEpochSecond();
|
||||||
long midnight = Instant.parse(date).getEpochSecond();
|
long midnight = Instant.parse(date).getEpochSecond();
|
||||||
|
@ -100,10 +100,6 @@ public class FMObjList extends ArrayList<FMObj> implements Comparable<FMObjList>
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void refresh() {
|
public void refresh() {
|
||||||
int counter;
|
stream().forEach(FMObj::refresh);
|
||||||
for (counter = 0; counter < size(); counter++) {
|
|
||||||
get(counter).refresh();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user