From 07831b538211ff29c110508334bee252fe230e07 Mon Sep 17 00:00:00 2001 From: chryzsh Date: Mon, 23 Mar 2026 18:58:25 +0100 Subject: [PATCH] Use UTC for application assignment deadlines --- lib/SmsProviderWmi.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SmsProviderWmi.cs b/lib/SmsProviderWmi.cs index 04cadea..a63a94a 100644 --- a/lib/SmsProviderWmi.cs +++ b/lib/SmsProviderWmi.cs @@ -1093,7 +1093,7 @@ public static ManagementObject NewDeployment(ManagementScope wmiConnection, stri { Console.WriteLine($"[+] Creating new deployment of {applicationName} to {collection["Name"]} ({collection["CollectionID"]})"); string siteCode = wmiConnection.Path.ToString().Split('_').Last(); - string now = DateTime.Now.ToString("yyyyMMddHHmmss" + ".000000+***"); + string now = DateTime.UtcNow.ToString("yyyyMMddHHmmss" + ".000000+000"); deployment = new ManagementClass(wmiConnection, new ManagementPath("SMS_ApplicationAssignment"), null).CreateInstance(); deployment["ApplicationName"] = applicationName; deployment["AssignmentName"] = $"{applicationName}_{collection["CollectionID"]}_Install";