Skip to content

Commit

Permalink
[kotlin-client][multiplatform] add support for kotlinx.datetime.Local…
Browse files Browse the repository at this point in the history
…Time
  • Loading branch information
WonderCsabo committed Sep 16, 2024
1 parent 7dcaece commit 266a55d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -583,12 +583,15 @@ private void processKotlinxDate() {

typeMapping.put("date-time", "Instant");
typeMapping.put("date", "LocalDate");
typeMapping.put("time", "LocalTime");

typeMapping.put("DateTime", "Instant");
typeMapping.put("Date", "LocalDate");
typeMapping.put("Time", "LocalTime");

importMapping.put("Instant", "kotlinx.datetime.Instant");
importMapping.put("LocalDate", "kotlinx.datetime.LocalDate");
importMapping.put("LocalTime", "kotlinx.datetime.LocalTime");
}

private void processJVMRetrofit2Library(String infrastructureFolder) {
Expand Down

0 comments on commit 266a55d

Please sign in to comment.