Skip to content

Commit

Permalink
make log time a legit ISO8601 single entity by adding T
Browse files Browse the repository at this point in the history
  • Loading branch information
mojombo committed Feb 24, 2010
1 parent a5d1ee9 commit 287d548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elib/ernie_access_logger.erl
Expand Up @@ -158,7 +158,7 @@ time_tuple_to_iso_8601_date(TimeTuple) ->
{{YY, MM, DD}, {H, M, S}} = calendar:now_to_local_time(TimeTuple),
{_MegaSecs, _Secs, MicroSecs} = TimeTuple,
Args = [YY, MM, DD, H, M, S, MicroSecs],
io_lib:fwrite("~4B-~2.10.0B-~2.10.0B ~2.10.0B:~2.10.0B:~2.10.0B.~-6.10.0B", Args).
io_lib:fwrite("~4B-~2.10.0B-~2.10.0BT~2.10.0B:~2.10.0B:~2.10.0B.~-6.10.0B", Args).

time_difference_in_seconds(T1, T2) ->
{_, _, MS1} = T1,
Expand Down

0 comments on commit 287d548

Please sign in to comment.