mirror of https://github.com/apache/jclouds.git
Adjusting iso8601SecondsDateParse to replace ' ' with 'T" in the same manner as iso8601DateParse
This commit is contained in:
parent
919f3ccc71
commit
7dbba2a4e1
|
@ -157,6 +157,8 @@ public class SimpleDateFormatDateService implements DateService {
|
|||
toParse = trimToMillis(toParse);
|
||||
toParse = trimTZ(toParse);
|
||||
toParse += tz;
|
||||
if (toParse.charAt(10) == ' ')
|
||||
toParse = new StringBuilder(toParse).replace(10, 11, "T").toString();
|
||||
synchronized (iso8601SecondsSimpleDateFormat) {
|
||||
try {
|
||||
return iso8601SecondsSimpleDateFormat.parse(toParse);
|
||||
|
|
Loading…
Reference in New Issue