From 91ce125c7f172ac00b5cf4e35e26aabe502d1659 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 25 Jun 2025 15:38:26 +0900 Subject: [PATCH] Update MainForm.cs --- WelsonJS.Toolkit/WelsonJS.Launcher/MainForm.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/WelsonJS.Toolkit/WelsonJS.Launcher/MainForm.cs b/WelsonJS.Toolkit/WelsonJS.Launcher/MainForm.cs index 974f5ee..6fb6aa7 100644 --- a/WelsonJS.Toolkit/WelsonJS.Launcher/MainForm.cs +++ b/WelsonJS.Toolkit/WelsonJS.Launcher/MainForm.cs @@ -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)