Skip to content

Commit 395f95c

Browse files
committed
Add timezone to BuildDate whenever project is built
1 parent 8e31381 commit 395f95c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Universal THCRAP Launcher/Universal THCRAP Launcher.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,6 @@
167167
</ItemGroup>
168168
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
169169
<PropertyGroup>
170-
<PreBuildEvent>echo %25date%25 %25time%25 &gt; "$(ProjectDir)\Resources\BuildDate.txt"</PreBuildEvent>
170+
<PreBuildEvent>for /f "tokens=*" %25i in ('tzutil /g') do echo %25date%25 %25time%25 (%25i) &gt; "$(ProjectDir)\Resources\BuildDate.txt"</PreBuildEvent>
171171
</PropertyGroup>
172172
</Project>

0 commit comments

Comments
 (0)