Compare commits
2 commits
2c0e524549
...
7c95c1d92a
Author | SHA1 | Date | |
---|---|---|---|
7c95c1d92a | |||
5fbee39d56 |
3 changed files with 7 additions and 3 deletions
|
@ -36,7 +36,7 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.hazelcast</groupId>
|
<groupId>com.hazelcast</groupId>
|
||||||
<artifactId>hazelcast-all</artifactId>
|
<artifactId>hazelcast</artifactId>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
4
pom.xml
4
pom.xml
|
@ -40,7 +40,7 @@
|
||||||
<scm.projectId>time</scm.projectId>
|
<scm.projectId>time</scm.projectId>
|
||||||
<java.version>17</java.version>
|
<java.version>17</java.version>
|
||||||
|
|
||||||
<hazelcast.version>4.2.8</hazelcast.version>
|
<hazelcast.version>5.4.0</hazelcast.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.hazelcast</groupId>
|
<groupId>com.hazelcast</groupId>
|
||||||
<artifactId>hazelcast-all</artifactId>
|
<artifactId>hazelcast</artifactId>
|
||||||
<version>${hazelcast.version}</version>
|
<version>${hazelcast.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
|
@ -35,6 +35,10 @@ public class TimeUtil {
|
||||||
return LocalDate.now();
|
return LocalDate.now();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static LocalDate yesterday() {
|
||||||
|
return today().minusDays(1);
|
||||||
|
}
|
||||||
|
|
||||||
public static LocalDate convert(Date dateToConvert) {
|
public static LocalDate convert(Date dateToConvert) {
|
||||||
return dateToConvert.toInstant()
|
return dateToConvert.toInstant()
|
||||||
.atZone(ZoneId.systemDefault())
|
.atZone(ZoneId.systemDefault())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue