Skip to content

Commit

Permalink
Fix timestamp offset (issue pathtofile#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyoya2 committed Jun 30, 2023
1 parent 7485d3b commit dd1ea6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sealighter/sealighter_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,11 @@ std::string convert_filetime_string
const FILETIME from
)
{
FILETIME local_ftime;
SYSTEMTIME stime;
::FileTimeToSystemTime(std::addressof(from), std::addressof(stime));

::FileTimeToLocalFileTime(std::addressof(from), std::addressof(local_ftime));
::FileTimeToSystemTime(std::addressof(local_ftime), std::addressof(stime));
std::string to = convert_systemtime_string(stime);
return to;
}
Expand Down

0 comments on commit dd1ea6b

Please sign in to comment.