Skip to content

Commit

Permalink
chore(java): Full Java 17 support only
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmcintosh committed Nov 16, 2024
1 parent d5e7886 commit 49f2940
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ object AmazonTagExclusionPolicyTest {
filteredResources.first().resourceId shouldMatch equalTo("2")
}
}
//TODO: This is a duplicate of the above but with a VERY specific very precise time zone
@Test
fun `should handle high precision date times`() {
val now = LocalDateTime.ofInstant(Instant.from(DateTimeFormatter.ISO_INSTANT.parse("2024-11-15T23:42:18.592945345Z")), ZoneId.of("America/Chicago"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import java.time.format.DateTimeFormatterBuilder
class Dates {
companion object {
private val formats: List<DateTimeFormatter> = listOf(
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSS'Z'"),
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ssZ"),
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"),
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSZ"),
Expand Down

0 comments on commit 49f2940

Please sign in to comment.