Skip to content

Commit

Permalink
update date format in an attempt to work around Raml2JaxRS date handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxcapades committed Oct 24, 2023
1 parent 2363512 commit fe4dfcd
Show file tree
Hide file tree
Showing 52 changed files with 13 additions and 7 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
14 changes: 7 additions & 7 deletions build.gradle.kts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ repositories {
}

dependencies {
api("com.fasterxml.jackson.core:jackson-core:2.14.2")
api("com.fasterxml.jackson.core:jackson-databind:2.14.2")
api("com.fasterxml.jackson.core:jackson-annotations:2.14.2")
api("com.fasterxml.jackson.module:jackson-module-kotlin:2.14.2")
api("com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2")
api("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2")
api("com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2")}
api("com.fasterxml.jackson.core:jackson-core:2.15.3")
api("com.fasterxml.jackson.core:jackson-databind:2.15.3")
api("com.fasterxml.jackson.core:jackson-annotations:2.15.3")
api("com.fasterxml.jackson.module:jackson-module-kotlin:2.15.3")
api("com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.3")
api("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.3")
api("com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.3")}

kotlin {
jvmToolchain(18)
Expand Down
Empty file modified docs/dokka/1.0.0/images/anchor-copy-button.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/arrow_down.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/copy-icon.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/copy-successful-icon.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/footer-go-to-link.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/go-to-top-icon.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/logo-icon.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/nav-icons/abstract-class-kotlin.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/nav-icons/abstract-class.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/nav-icons/annotation-kotlin.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/nav-icons/annotation.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/nav-icons/class-kotlin.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/nav-icons/class.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/nav-icons/enum-kotlin.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/nav-icons/enum.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/nav-icons/exception-class.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/nav-icons/field-value.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/nav-icons/field-variable.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/nav-icons/function.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/nav-icons/interface-kotlin.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/nav-icons/interface.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/nav-icons/object.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/images/theme-toggle.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/dokka/1.0.0/index.html
100644 → 100755
Empty file.
Empty file modified docs/dokka/1.0.0/navigation.html
100644 → 100755
Empty file.
Empty file modified docs/dokka/1.0.0/scripts/clipboard.js
100644 → 100755
Empty file.
Empty file modified docs/dokka/1.0.0/scripts/main.js
100644 → 100755
Empty file.
Empty file modified docs/dokka/1.0.0/scripts/navigation-loader.js
100644 → 100755
Empty file.
Empty file modified docs/dokka/1.0.0/scripts/pages.json
100644 → 100755
Empty file.
Empty file modified docs/dokka/1.0.0/scripts/platform-content-handler.js
100644 → 100755
Empty file.
Empty file modified docs/dokka/1.0.0/scripts/prism.js
100644 → 100755
Empty file.
Empty file modified docs/dokka/1.0.0/scripts/sourceset_dependencies.js
100644 → 100755
Empty file.
Empty file modified docs/dokka/1.0.0/scripts/symbol-parameters-wrapper_deferred.js
100644 → 100755
Empty file.
Empty file modified docs/dokka/1.0.0/styles/jetbrains-mono.css
100644 → 100755
Empty file.
Empty file modified docs/dokka/1.0.0/styles/logo-styles.css
100644 → 100755
Empty file.
Empty file modified docs/dokka/1.0.0/styles/main.css
100644 → 100755
Empty file.
Empty file modified docs/dokka/1.0.0/styles/prism.css
100644 → 100755
Empty file.
Empty file modified docs/dokka/1.0.0/styles/style.css
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified docs/dokka/1.0.0/vdi-component-json/package-list
100644 → 100755
Empty file.
Empty file modified gradle.properties
100644 → 100755
Empty file.
Empty file modified gradle/wrapper/gradle-wrapper.jar
100644 → 100755
Empty file.
Empty file modified gradle/wrapper/gradle-wrapper.properties
100644 → 100755
Empty file.
Empty file modified gradlew.bat
100644 → 100755
Empty file.
Empty file modified license
100644 → 100755
Empty file.
Empty file modified readme.adoc
100644 → 100755
Empty file.
Empty file modified settings.gradle.kts
100644 → 100755
Empty file.
6 changes: 6 additions & 0 deletions src/main/kotlin/org/veupathdb/vdi/lib/json/JSON.kt
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import com.fasterxml.jackson.datatype.jdk8.Jdk8Module
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.module.kotlin.KotlinModule
import com.fasterxml.jackson.module.paramnames.ParameterNamesModule
import java.text.SimpleDateFormat
import java.util.TimeZone

/**
* Jackson Object Mapper
Expand All @@ -20,6 +22,10 @@ val JSON = JsonMapper.builder()
.addModule(JavaTimeModule())
.addModule(KotlinModule.Builder().build())
.build()!!
.also {
it.dateFormat = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX")
it.dateFormat.timeZone = TimeZone.getDefault()
}

/**
* Writes an arbitrary value as a JSON string.
Expand Down

0 comments on commit fe4dfcd

Please sign in to comment.