Skip to content

Commit

Permalink
[*] Fixed build.gradle, forced Gradle to use Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
Lei-Tin authored and ScottCTD committed Nov 6, 2022
1 parent 90576de commit f264c02
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
plugins {
id 'java'
id("java-library") // or id("application")
}

repositories {
mavenCentral()
}

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}

dependencies {
implementation 'junit:junit:4.13.1'
testImplementation('org.junit.jupiter:junit-jupiter:5.6.0')
Expand Down
18 changes: 9 additions & 9 deletions src/main/java/billgates/database/MySQLDatabaseGateway.java
Original file line number Diff line number Diff line change
Expand Up @@ -241,17 +241,17 @@ public static void main(String[] args) {
// 0,
// ZoneId.of("US/Eastern"));
//
// QueryBillData b = a.getBillData(1);
QueryBillData b = a.getBillData(1);

a.createBill(2);
// a.createBill(2);

// for (QueryEntryData i : b.getEntries()) {
// System.out.println(i.getValue());
// System.out.println(i.getDate().toInstant().toEpochMilli());
//
// DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
// System.out.println(i.getDate().format(formatter));
// }
for (QueryEntryData i : b.getEntries()) {
System.out.println(i.getValue());
System.out.println(i.getDate().toInstant().toEpochMilli());

DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
System.out.println(i.getDate().format(formatter));
}
//
// ZonedDateTime insertedTime = ZonedDateTime.of(2022,
// 10,
Expand Down

0 comments on commit f264c02

Please sign in to comment.