aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_info.erl
diff options
context:
space:
mode:
authorErland Schönbeck <[email protected]>2015-03-24 10:07:17 +0100
committerErland Schönbeck <[email protected]>2015-03-24 10:07:17 +0100
commit0fd30aa5c434dab38d0aa39a3ab7899c7e89dd9d (patch)
treec30d08777d9458196b7947a053def53658a99361 /lib/ssh/src/ssh_info.erl
parent487446e76102b27fa8df02a353c7fdeec2d091f1 (diff)
downloadotp-0fd30aa5c434dab38d0aa39a3ab7899c7e89dd9d.tar.gz
otp-0fd30aa5c434dab38d0aa39a3ab7899c7e89dd9d.tar.bz2
otp-0fd30aa5c434dab38d0aa39a3ab7899c7e89dd9d.zip
ssh: Use new time API
Diffstat (limited to 'lib/ssh/src/ssh_info.erl')
-rw-r--r--lib/ssh/src/ssh_info.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_info.erl b/lib/ssh/src/ssh_info.erl
index 9a91875894..eae9ded5c6 100644
--- a/lib/ssh/src/ssh_info.erl
+++ b/lib/ssh/src/ssh_info.erl
@@ -179,7 +179,7 @@ line(Len, Char) ->
datetime() ->
- {{YYYY,MM,DD}, {H,M,S}} = calendar:now_to_universal_time(now()),
+ {{YYYY,MM,DD}, {H,M,S}} = calendar:now_to_universal_time(erlang:timestamp()),
lists:flatten(io_lib:format('~4w-~2..0w-~2..0w ~2..0w:~2..0w:~2..0w UTC',[YYYY,MM,DD, H,M,S])).