diff options
author | Dan Gudmundsson <[email protected]> | 2015-02-03 09:56:49 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2015-03-20 15:28:53 +0100 |
commit | d6c23051e42928099fdcad4199bc89503ca6f2d9 (patch) | |
tree | 8138c8c3fd895bc9d8d789d969791f1e6c5dcef2 /lib/tools/src/cover_web.erl | |
parent | 469e8f285f39218dfe0800b4df1c91739267c23c (diff) | |
download | otp-d6c23051e42928099fdcad4199bc89503ca6f2d9.tar.gz otp-d6c23051e42928099fdcad4199bc89503ca6f2d9.tar.bz2 otp-d6c23051e42928099fdcad4199bc89503ca6f2d9.zip |
Replace usage of erlang:now() with usage of new API
Diffstat (limited to 'lib/tools/src/cover_web.erl')
-rw-r--r-- | lib/tools/src/cover_web.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tools/src/cover_web.erl b/lib/tools/src/cover_web.erl index 69f2f3b1aa..75bb45c659 100644 --- a/lib/tools/src/cover_web.erl +++ b/lib/tools/src/cover_web.erl @@ -734,7 +734,7 @@ generate_filename(Prefix) -> filename:join(Cwd,Prefix ++ "_" ++ ts() ++ ".coverdata"). 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]). |