@@ -100,7 +100,7 @@ func handleSendMessage(w http.ResponseWriter, r *http.Request) {
100100 "to" : to ,
101101 "from" : from ,
102102 "body" : body ,
103- "date_created" : time .Now ().UTC ().Format (time .RFC1123Z ),
103+ "date_created" : time .Now ().UTC ().Format (time .RFC3339 ),
104104 "direction" : "outbound-api" ,
105105 "price" : nil ,
106106 }
@@ -150,7 +150,7 @@ func handleFetchMessage(w http.ResponseWriter, r *http.Request, msgSid string) {
150150 "to" : "+15005550001" ,
151151 "from" : "+15005550006" ,
152152 "body" : "Fetched message body" ,
153- "date_created" : time .Now ().UTC ().Format (time .RFC1123Z ),
153+ "date_created" : time .Now ().UTC ().Format (time .RFC3339 ),
154154 "direction" : "outbound-api" ,
155155 "num_media" : "0" ,
156156 })
@@ -169,7 +169,7 @@ func handleCreateCall(w http.ResponseWriter, r *http.Request) {
169169 "to" : to ,
170170 "from" : from ,
171171 "direction" : "outbound-api" ,
172- "date_created" : time .Now ().UTC ().Format (time .RFC1123Z ),
172+ "date_created" : time .Now ().UTC ().Format (time .RFC3339 ),
173173 "duration" : "0" ,
174174 })
175175}
@@ -240,7 +240,7 @@ func handleSendVerification(w http.ResponseWriter, r *http.Request, serviceSid s
240240 "to" : to ,
241241 "channel" : channel ,
242242 "status" : "pending" ,
243- "date_created" : time .Now ().UTC ().Format (time .RFC1123Z ),
243+ "date_created" : time .Now ().UTC ().Format (time .RFC3339 ),
244244 })
245245}
246246
@@ -254,7 +254,7 @@ func handleCheckVerification(w http.ResponseWriter, r *http.Request, serviceSid
254254 "channel" : "sms" ,
255255 "status" : "approved" ,
256256 "valid" : true ,
257- "date_created" : time .Now ().UTC ().Format (time .RFC1123Z ),
257+ "date_created" : time .Now ().UTC ().Format (time .RFC3339 ),
258258 })
259259}
260260
@@ -266,7 +266,7 @@ func handleAddPhoneNumber(w http.ResponseWriter, r *http.Request, serviceSid str
266266 "service_sid" : serviceSid ,
267267 "phone_number" : phone ,
268268 "country_code" : "US" ,
269- "date_created" : time .Now ().UTC ().Format (time .RFC1123Z ),
269+ "date_created" : time .Now ().UTC ().Format (time .RFC3339 ),
270270 })
271271}
272272
0 commit comments