OSDN Git Service

Fix bugs of decoding last modified times.
authors_kawamoto <s_kawamoto@users.sourceforge.jp>
Mon, 6 Feb 2012 15:54:15 +0000 (00:54 +0900)
committers_kawamoto <s_kawamoto@users.sourceforge.jp>
Mon, 6 Feb 2012 15:54:15 +0000 (00:54 +0900)
FFFTP_Eng_Release/FFFTP.exe
Release/FFFTP.exe
filelist.c
remote.c

index 17f069a..4b5efe9 100644 (file)
Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
index 3df844c..e8e09a2 100644 (file)
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
index cb1295b..94e02ac 100644 (file)
@@ -4911,6 +4911,7 @@ static int ResolvFileInfo(char *Str, int ListType, char *Fname, LONGLONG *Size,
                                                        sTime.wSecond = atoi_n(Value + 12, 2);\r
                                                        sTime.wMilliseconds = 0;\r
                                                        SystemTimeToFileTime(&sTime, Time);\r
                                                        sTime.wSecond = atoi_n(Value + 12, 2);\r
                                                        sTime.wMilliseconds = 0;\r
                                                        SystemTimeToFileTime(&sTime, Time);\r
+                                                       // 時刻はGMT\r
 //                                                     SpecificLocalFileTime2FileTime(Time, AskHostTimeZone());\r
                                                        *InfoExist |= FINFO_DATE | FINFO_TIME;\r
                                                }\r
 //                                                     SpecificLocalFileTime2FileTime(Time, AskHostTimeZone());\r
                                                        *InfoExist |= FINFO_DATE | FINFO_TIME;\r
                                                }\r
index 4125606..d808727 100644 (file)
--- a/remote.c
+++ b/remote.c
@@ -451,7 +451,8 @@ int DoMDTM(SOCKET cSkt, char *Path, FILETIME *Time, int *CancelCheckWork)
                        &sTime.wHour, &sTime.wMinute, &sTime.wSecond) == 6)\r
                {\r
                        SystemTimeToFileTime(&sTime, Time);\r
                        &sTime.wHour, &sTime.wMinute, &sTime.wSecond) == 6)\r
                {\r
                        SystemTimeToFileTime(&sTime, Time);\r
-                       SpecificLocalFileTime2FileTime(Time, AskHostTimeZone());\r
+                       // 時刻はGMT\r
+//                     SpecificLocalFileTime2FileTime(Time, AskHostTimeZone());\r
 \r
                }\r
        }\r
 \r
                }\r
        }\r