From fe51f0aa22eb1bcecbf9e8b16642aeee36d85c0b Mon Sep 17 00:00:00 2001 From: JT Smith Date: Tue, 28 Sep 2010 09:33:08 -0500 Subject: [PATCH] fixed formatting problem on dates that was causing big errors --- lib/Lacuna/DB/Result/Map/Body/Planet.pm | 2 +- lib/Lacuna/RPC/Building/Trade.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Lacuna/DB/Result/Map/Body/Planet.pm b/lib/Lacuna/DB/Result/Map/Body/Planet.pm index dac29f62..7130b371 100644 --- a/lib/Lacuna/DB/Result/Map/Body/Planet.pm +++ b/lib/Lacuna/DB/Result/Map/Body/Planet.pm @@ -141,7 +141,7 @@ around get_status => sub { } else { push @{$out->{incoming_foreign_ships}}, { - date_arrives => $ship->date_available, + date_arrives => $ship->date_available_formatted, }; } } diff --git a/lib/Lacuna/RPC/Building/Trade.pm b/lib/Lacuna/RPC/Building/Trade.pm index 3b5cbf1b..1715283a 100644 --- a/lib/Lacuna/RPC/Building/Trade.pm +++ b/lib/Lacuna/RPC/Building/Trade.pm @@ -89,7 +89,7 @@ sub accept_trade { confess [1002, 'Could not find that trade. Perhaps it has already been accepted.']; } unless ($ship->hold_size >= $trade->ask_quantity) { - confess [1011, 'You need a cargo ship with a hold size of at least '.$trade->ask_quantity]; + confess [1011, 'You need a cargo ship with a hold size of at least '.$trade->ask_quantity.'.']; } my $body = $building->body; if ($trade->ask_type eq 'essentia') { -- 2.51.2