We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2714e86 + 13815d7 commit 690f506Copy full SHA for 690f506
1 file changed
ZkLobbyServer/SpringieInterface/StartSetup.cs
@@ -292,6 +292,13 @@ public static LobbyHostingContext GetDedicatedServerStartSetup(LobbyHostingConte
292
* See https://github.com/ZeroK-RTS/Zero-K-Infrastructure/blob/master/Shared/LobbyClient/DedicatedServer.cs#L317 */
293
ret.ModOptions["sendSpringieData"] = "1";
294
295
+ /* Current date. Synced Lua code cannot access `os.date`
296
+ * which is needed for gameside events (Easter etc) */
297
+ var date = DateTime.UtcNow;
298
+ ret.ModOptions["date_day"] = date.Day.ToString();
299
+ ret.ModOptions["date_month"] = date.Month.ToString();
300
+ ret.ModOptions["date_year"] = date.Year.ToString();
301
+
302
// set PW structures
303
if (mode == AutohostMode.Planetwars)
304
{
0 commit comments