time: follow RFC3339 spec for datetime (#632)

This commit is contained in:
Johanan Idicula
2021-10-18 09:56:07 -04:00
committed by GitHub
parent 9e81ce1c33
commit df4bb061f8
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ func (d LocalDateTime) AsTime(zone *time.Location) time.Time {
// String returns RFC 3339 representation of d.
func (d LocalDateTime) String() string {
return d.LocalDate.String() + " " + d.LocalTime.String()
return d.LocalDate.String() + "T" + d.LocalTime.String()
}
// MarshalText returns RFC 3339 representation of d.