Sealighter icon indicating copy to clipboard operation
Sealighter copied to clipboard

timestamp is a few hours less than the actual time

Open wumn290 opened this issue 3 years ago • 0 comments

Call FileTimeToLocalFileTime before calling FileTimeToSystemTime to correct the time zone of FILETIME

std::string convert_filetime_string ( const FILETIME from ) { SYSTEMTIME stime; FILETIME localFileTime; FileTimeToLocalFileTime(std::addressof(from), std::addressof(localFileTime)); ::FileTimeToSystemTime(std::addressof(localFileTime), std::addressof(stime)); std::string to = convert_systemtime_string(stime); return to; }

wumn290 avatar Jun 20 '22 10:06 wumn290