CFileStatus m_mtime problems
-
Hy, i am using CFileStatus to get the date and time when the file was last modified. By some files time is one hour earlier or later, but only by some files? Does anybody have a clue why this happens?
cfile.GetStatus(m_filepaths[i], m_status);
Date=m_status.m_mtime.Format( "%d.%m.%Y %H:%M " );
-
Hy, i am using CFileStatus to get the date and time when the file was last modified. By some files time is one hour earlier or later, but only by some files? Does anybody have a clue why this happens?
cfile.GetStatus(m_filepaths[i], m_status);
Date=m_status.m_mtime.Format( "%d.%m.%Y %H:%M " );
-
Do you have any idea how to fix this?
-
Do you have any idea how to fix this?
-
Hy, i am using CFileStatus to get the date and time when the file was last modified. By some files time is one hour earlier or later, but only by some files? Does anybody have a clue why this happens?
cfile.GetStatus(m_filepaths[i], m_status);
Date=m_status.m_mtime.Format( "%d.%m.%Y %H:%M " );
-
Hy, i am using CFileStatus to get the date and time when the file was last modified. By some files time is one hour earlier or later, but only by some files? Does anybody have a clue why this happens?
cfile.GetStatus(m_filepaths[i], m_status);
Date=m_status.m_mtime.Format( "%d.%m.%Y %H:%M " );
This can occur when files are stored on FAT file systems. NTFS stores all dates in UTC while FAT uses local times. The local time from FAT file systems is converted when getting the time. But this will return wrong values when the time stamp has been written by a system that uses a different time zone than the one used to read the time stamp. See also File Times (Windows)[^].
-
I have a little bit check files. Files that where modified round in period betwen November and April have time one hour later.
-
Hy, i am using CFileStatus to get the date and time when the file was last modified. By some files time is one hour earlier or later, but only by some files? Does anybody have a clue why this happens?
cfile.GetStatus(m_filepaths[i], m_status);
Date=m_status.m_mtime.Format( "%d.%m.%Y %H:%M " );
I have solved the Problem with this: Retrieving the Last-Write Time (Windows)[^]