Skip to content

Commit

Permalink
[Closes #39] Add padding to month and day in human readable date format.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfacorro committed Apr 7, 2015
1 parent 675d750 commit 1ad62bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ktn_date.erl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ now_human_readable() ->
TimeStamp = {_, _, Micro} = os:timestamp(),
{{Year, Month, Day},
{Hour, Minute, Second}} = calendar:now_to_universal_time(TimeStamp),
DateList = io_lib:format("~p-~p-~pT~p:~p:~p.~6..0wZ",
DateList = io_lib:format("~p-~2..0B-~2..0BT~p:~p:~p.~6..0wZ",
[Year, Month, Day, Hour, Minute, Second, Micro]),
list_to_binary(DateList).

0 comments on commit 1ad62bd

Please sign in to comment.