MSPF-532: Use relaxed format for timestamps (#28)

* MSPF-532: Use relaxed format for timestamps

* Adjust time unit in parse_timestamp/1
This commit is contained in:
Sergey Yelin 2020-04-20 11:55:29 +03:00 committed by GitHub
parent 45f1fddedf
commit e6fef0f64c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -182,8 +182,8 @@ render_short_url(ID, Template) ->
]).
parse_timestamp(Timestamp) ->
Seconds = genlib_rfc3339:parse(Timestamp, second),
genlib_rfc3339:format(Seconds, second).
Microseconds = genlib_rfc3339:parse(Timestamp, microsecond),
genlib_rfc3339:format_relaxed(Microseconds, microsecond).
get_short_url_template() ->
% TODO

View File

@ -31,7 +31,7 @@
2},
{<<"genlib">>,
{git,"https://github.com/rbkmoney/genlib.git",
{ref,"9011407d47b81008a2d59bb58bb62865c754bcb3"}},
{ref,"b5da96d1b719b9a2d6c8a132236cd126e4e2361a"}},
0},
{<<"goldrush">>,{pkg,<<"goldrush">>,<<"0.1.9">>},1},
{<<"gproc">>,{pkg,<<"gproc">>,<<"0.8.0">>},1},