diff --git a/ZkLobbyServer/SpringieInterface/StartSetup.cs b/ZkLobbyServer/SpringieInterface/StartSetup.cs index b1f300b33..fcb67eded 100644 --- a/ZkLobbyServer/SpringieInterface/StartSetup.cs +++ b/ZkLobbyServer/SpringieInterface/StartSetup.cs @@ -292,6 +292,13 @@ public static LobbyHostingContext GetDedicatedServerStartSetup(LobbyHostingConte * See https://github.com/ZeroK-RTS/Zero-K-Infrastructure/blob/master/Shared/LobbyClient/DedicatedServer.cs#L317 */ ret.ModOptions["sendSpringieData"] = "1"; + /* Current date. Synced Lua code cannot access `os.date` + * which is needed for gameside events (Easter etc) */ + var date = DateTime.UtcNow; + ret.ModOptions["date_day"] = date.Day.ToString(); + ret.ModOptions["date_month"] = date.Month.ToString(); + ret.ModOptions["date_year"] = date.Year.ToString(); + // set PW structures if (mode == AutohostMode.Planetwars) {