From 22460e9f6f61d27be60acceebbfa5be71dbf09b4 Mon Sep 17 00:00:00 2001 From: Mark Lemming Date: Wed, 30 Dec 2015 10:51:02 -0700 Subject: [PATCH] Set date_create when AI generate spies. --- lib/Lacuna/AI.pm | 1 + var/www/public/changes.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/Lacuna/AI.pm b/lib/Lacuna/AI.pm index 1accc8c1..70181e90 100644 --- a/lib/Lacuna/AI.pm +++ b/lib/Lacuna/AI.pm @@ -371,6 +371,7 @@ sub train_spies { from_body_id => $colony->id, on_body_id => $colony->id, task => 'Idle', + date_created => DateTime->now, started_assignment => DateTime->now, available_on => DateTime->now, empire_id => $colony->empire_id, diff --git a/var/www/public/changes.txt b/var/www/public/changes.txt index d05cc8e9..c490441b 100644 --- a/var/www/public/changes.txt +++ b/var/www/public/changes.txt @@ -2,6 +2,7 @@ - Fix: Unallied players should never see anyone else in purple on the starmap. - Fix: Some of the numbers in the APIs are now returned as numbers instead of strings. - Mod: Add commas to total cargo in TM and SST. + - Fix: Initialize date_created field for spies. 3.0917: - Fix: Recalc stats when building 1+x plans. -- 2.51.2