LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File otp_src_18.3.1-lib-ic-ic_erl_template.patch of Package erlang (Project home:Ledest:erlang:20)

diff -Ndur otp_src_18.3.1/lib/ic/src/ic_erl_template.erl otp_src_18.3.1-lib-ic-ic_erl_template/lib/ic/src/ic_erl_template.erl
--- otp_src_18.3.1/lib/ic/src/ic_erl_template.erl	2016-04-01 21:19:13.000000000 +0300
+++ otp_src_18.3.1-lib-ic-ic_erl_template/lib/ic/src/ic_erl_template.erl	2016-04-07 01:34:02.547758284 +0300
@@ -376,7 +376,7 @@
 
 
 get_date() ->
-    {{Y,M,D}, _} = calendar:now_to_datetime(now()),
+    {{Y,M,D}, _} = calendar:now_to_datetime(os:timestamp()),
     if
 	M < 10, D < 10 ->
 	    lists:concat([Y, "-0", M, "-0",D]);