Skip to content

Commit

Permalink
fix a bug of os.date
Browse files Browse the repository at this point in the history
  • Loading branch information
slepher committed Jul 28, 2014
1 parent 79d00c4 commit 660f0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/luerl_os.erl
Expand Up @@ -49,7 +49,7 @@ clock(_, St) -> %This is wrong!

date(_, St) ->
{{Ye,Mo,Da},{Ho,Mi,Sec}} = calendar:local_time(),
Str = io_lib:fwrite("~w-~.2.Ow-~.2.0w ~.2.0w:~.2.0w:~.2.0w",
Str = io_lib:fwrite("~w-~.2.0w-~.2.0w ~.2.0w:~.2.0w:~.2.0w",
[Ye,Mo,Da,Ho,Mi,Sec]),
{[iolist_to_binary(Str)],St}.

Expand Down

0 comments on commit 660f0d3

Please sign in to comment.