mirror of
https://github.com/valitydev/url-shortener.git
synced 2024-11-06 01:55:19 +00:00
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:
parent
45f1fddedf
commit
e6fef0f64c
@ -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
|
||||
|
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user