[Ttssh2-commit] [6774] デバッグログを ISO-8601 形式で出力するようにした。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2017年 6月 5日 (月) 20:30:42 JST


Revision: 6774
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6774
Author:   doda
Date:     2017-06-05 20:30:41 +0900 (Mon, 05 Jun 2017)
Log Message:
-----------
デバッグログを ISO-8601 形式で出力するようにした。

デバッグログは基本的にはユーザが見る物では無いので、ユーザ指定の形式を反映しなくても大丈夫?
タイムゾーンを取るのが面倒なので UTC にしているけれど、これも問題ない?

Modified Paths:
--------------
    trunk/ttssh2/ttxssh/ttxssh.c

-------------- next part --------------
Modified: trunk/ttssh2/ttxssh/ttxssh.c
===================================================================
--- trunk/ttssh2/ttxssh/ttxssh.c	2017-06-05 10:44:18 UTC (rev 6773)
+++ trunk/ttssh2/ttxssh/ttxssh.c	2017-06-05 11:30:41 UTC (rev 6774)
@@ -931,7 +931,7 @@
 		             _S_IREAD | _S_IWRITE);
 
 		if (file >= 0) {
-			char *strtime = mctimelocal();
+			char *strtime = mctimelocal("%Y-%m-%dT%H:%M:%S,%NZ", TRUE);
 			DWORD processid;
 			char tmp[26];
 



Ttssh2-commit メーリングリストの案内
Back to archive index