Skip to content

Commit 8e40aea

Browse files
committed
Updater: Fix compiled time
1 parent 86fc2f8 commit 8e40aea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/Updater/page5.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ VOID ShowLatestVersionDialog(
144144
{
145145
LARGE_INTEGER time;
146146
SYSTEMTIME systemTime = { 0 };
147-
SYSTEMTIME localTime = { 0 };
147+
//SYSTEMTIME localTime = { 0 };
148148
PIMAGE_DOS_HEADER imageDosHeader;
149149
PIMAGE_NT_HEADERS imageNtHeader;
150150

@@ -154,15 +154,15 @@ VOID ShowLatestVersionDialog(
154154

155155
RtlSecondsSince1970ToTime(imageNtHeader->FileHeader.TimeDateStamp, &time);
156156
PhLargeIntegerToLocalSystemTime(&systemTime, &time);
157-
SystemTimeToTzSpecificLocalTime(NULL, &systemTime, &localTime);
157+
//SystemTimeToTzSpecificLocalTime(NULL, &systemTime, &localTime);
158158

159159
config.pszMainInstruction = L"You're running the latest nightly build";
160160
config.pszContent = PhaFormatString(
161161
L"Version: v%lu.%lu.%lu\r\nCompiled: %s",
162162
Context->CurrentMajorVersion,
163163
Context->CurrentMinorVersion,
164164
Context->CurrentRevisionVersion,
165-
PhaFormatDateTime(&localTime)->Buffer
165+
PhaFormatDateTime(&systemTime)->Buffer
166166
)->Buffer;
167167

168168
if (PhIsNullOrEmptyString(Context->BuildMessage))

0 commit comments

Comments
 (0)