|
@@ -1386,8 +1386,8 @@ to_comma_separated_atoms(Str) ->
|
|
|
rfc3339_to_system_time(DateTime) ->
|
|
rfc3339_to_system_time(DateTime) ->
|
|
|
try
|
|
try
|
|
|
{ok, calendar:rfc3339_to_system_time(DateTime, [{unit, second}])}
|
|
{ok, calendar:rfc3339_to_system_time(DateTime, [{unit, second}])}
|
|
|
- catch error: {badmatch, _} ->
|
|
|
|
|
- {error, ["The rfc3339 specification not satisfied"]}
|
|
|
|
|
|
|
+ catch error: _ ->
|
|
|
|
|
+ {error, bad_rfc3339_timestamp}
|
|
|
end.
|
|
end.
|
|
|
|
|
|
|
|
to_unicode_binary(Str) ->
|
|
to_unicode_binary(Str) ->
|