Kaydet (Commit) cb476900 authored tarafından Bahadır Kandemir's avatar Bahadır Kandemir

print localtime to log

üst a93483c6
...@@ -28,7 +28,7 @@ timestamp(FILE *f) ...@@ -28,7 +28,7 @@ timestamp(FILE *f)
struct tm *bt; struct tm *bt;
time(&t); time(&t);
bt = gmtime(&t); bt = localtime(&t);
strftime(buf, 127, "%F %T ", bt); strftime(buf, 127, "%F %T ", bt);
fputs(buf, f); fputs(buf, f);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment