Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 6156546

Browse files
Make the milliseconds in date format optional (#1502) (#1503)
Co-authored-by: Harinandan Chintamreddy <[email protected]>
1 parent f3f8a40 commit 6156546

File tree

1 file changed

+1
-1
lines changed
  • libraries/bot-schema/src/main/java/com/microsoft/bot/schema

1 file changed

+1
-1
lines changed

libraries/bot-schema/src/main/java/com/microsoft/bot/schema/Activity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class Activity {
4747

4848
@JsonProperty(value = "timestamp")
4949
@JsonInclude(JsonInclude.Include.NON_EMPTY)
50-
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.nXXX", timezone = "UTC")
50+
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss[.n]XXX", timezone = "UTC")
5151
private OffsetDateTime timestamp;
5252

5353
@JsonProperty(value = "localTimestamp")

0 commit comments

Comments
 (0)