Skip to content

Commit

Permalink
chore: try making flutter temporal conform to temporal spec
Browse files Browse the repository at this point in the history
  • Loading branch information
khatruong2009 committed Feb 15, 2024
1 parent 878b74d commit c3e06e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct FlutterTemporal: TemporalSpec {
// This class is solely for transmitting a ISO 8601 Date String to Appsync so these other functions are not needed
var foundationDate: Date
init(_ date: Date) {
self.iso8601 = ""
self.iso8601 = ISO8601DateFormatter().string(from: date)
self.foundationDate = date
}

Expand All @@ -31,6 +31,6 @@ struct FlutterTemporal: TemporalSpec {
}

func iso8601FormattedString(format: TemporalFormat, timeZone: TimeZone) -> String{
return ""
return iso8601
}
}

0 comments on commit c3e06e2

Please sign in to comment.