aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/ttb.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2015-01-30 15:56:28 +0100
committerRickard Green <[email protected]>2015-03-20 15:28:53 +0100
commit9cf2be0481f26e3251fdb9de0a5d5901f4faee83 (patch)
tree73cc3e38a86a708888a38094eae5ba106f6fbe32 /lib/observer/src/ttb.erl
parent4deb4dbc453318bcdf2f6f160cdb219fb31f7926 (diff)
downloadotp-9cf2be0481f26e3251fdb9de0a5d5901f4faee83.tar.gz
otp-9cf2be0481f26e3251fdb9de0a5d5901f4faee83.tar.bz2
otp-9cf2be0481f26e3251fdb9de0a5d5901f4faee83.zip
Replace usage of erlang:now() with usage of new API
Diffstat (limited to 'lib/observer/src/ttb.erl')
-rw-r--r--lib/observer/src/ttb.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/observer/src/ttb.erl b/lib/observer/src/ttb.erl
index 61fd6d1787..a2db40aa2f 100644
--- a/lib/observer/src/ttb.erl
+++ b/lib/observer/src/ttb.erl
@@ -849,7 +849,7 @@ get_nodes() ->
receive {?MODULE,Nodes} -> Nodes end.
ts() ->
- {{Y,M,D},{H,Min,S}} = calendar:now_to_local_time(now()),
+ {{Y,M,D},{H,Min,S}} = calendar:now_to_local_time(erlang:timestamp()),
io_lib:format("-~4.4.0w~2.2.0w~2.2.0w-~2.2.0w~2.2.0w~2.2.0w",
[Y,M,D,H,Min,S]).