Update MainForm.cs

This commit is contained in:
Namhyeon Go 2025-06-25 15:38:26 +09:00
parent aacc2414f2
commit 91ce125c7f

View File

@ -18,12 +18,16 @@ namespace WelsonJS.Launcher
{
private const string _entryFileName = "bootstrap.bat";
private readonly string _dateTimeFormat;
private string _workingDirectory;
private string _instanceId;
private string _scriptName;
public MainForm()
{
_dateTimeFormat = Program.GetAppConfig("DateTimeFormat");
InitializeComponent();
if (IsInAdministrator())
@ -181,7 +185,7 @@ namespace WelsonJS.Launcher
try
{
string filePath = Path.Combine(directory, ".welsonjs_first_deploy_time");
string text = now.ToString("yyyy-MM-dd HH:mm:ss");
string text = now.ToString(_dateTimeFormat);
File.WriteAllText(filePath, text);
}
catch (Exception ex)