Skip to content

Commit

Permalink
Update libraries (#13)
Browse files Browse the repository at this point in the history
* Update dependencies

* Fix marketstack api call
  • Loading branch information
hdescottes authored Jan 4, 2024
1 parent 5f17647 commit 22b6521
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
12 changes: 6 additions & 6 deletions app-api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
val springBootVersion by extra { "3.1.5" }
val springBootVersion by extra { "3.2.1" }
val postgresVersion by extra { "42.7.1" }
val jsr310Version by extra { "2.16.0" }
val liquibaseVersion by extra { "4.25.0" }
val apacheLang3Version by extra { "3.13.0" }
val jsr310Version by extra { "2.16.1" }
val liquibaseVersion by extra { "4.25.1" }
val apacheLang3Version by extra { "3.14.0" }

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:3.1.5")
classpath("org.springframework.boot:spring-boot-gradle-plugin:3.2.1")
}
}

plugins {
java
id("org.springframework.boot") version "3.1.5"
id("org.springframework.boot") version "3.2.1"
id("io.spring.dependency-management") version "1.1.3"
}

Expand Down
11 changes: 9 additions & 2 deletions app-ui/src/services/dashboard.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,23 @@ export class DashboardService {

fetch(symbol: string): Promise<Stock[]> {
const today = new Date();
let year = today.getUTCFullYear();
let month = today.getUTCMonth() - 3;
if (month < 0) {
year -= 1;
month += 12;
}

const to =
today.getUTCFullYear().toString() +
"-" +
("0" + (today.getUTCMonth() + 1).toString()).slice(-2) +
"-" +
("0" + today.getUTCDate().toString()).slice(-2);
const from =
today.getUTCFullYear().toString() +
year.toString() +
"-" +
("0" + (today.getUTCMonth() - 3).toString()).slice(-2) +
("0" + month.toString()).slice(-2) +
"-" +
("0" + today.getUTCDate().toString()).slice(-2);
return this.httpService
Expand Down

0 comments on commit 22b6521

Please sign in to comment.