Skip to content

Commit 1fe3232

Browse files
author
Sam Wierema
committed
Use the Z pattern instead of X to support OpenJDK 6
1 parent dcd32f8 commit 1fe3232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main/java/com/messagebird/MessageBirdServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public <P> HttpURLConnection getConnection(final String serviceUrl, final P post
196196
// Specifically set the date format for POST requests so scheduled
197197
// messages and other things relying on specific date formats don't
198198
// fail when sending.
199-
DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX");
199+
DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZZZ");
200200
mapper.setDateFormat(df);
201201

202202
final String json = mapper.writeValueAsString(postData);

0 commit comments

Comments
 (0)