diff --git a/xtrn/tw2/ports.js b/xtrn/tw2/ports.js
index 2635b6d74632364e1e749fd3116ad42fd1bbcb19..2ed512bfa322b8e27f3397a23377199dbee52cf3 100644
--- a/xtrn/tw2/ports.js
+++ b/xtrn/tw2/ports.js
@@ -62,6 +62,7 @@ var PortProperties = [
 
 function SolReport()
 {
+	var today=system.datestr(system.datestr());
 	var holdprice=parseInt(50*Math.sin(0.89756*(today/86400)) + 0.5)+500;
 	var fighterprice=parseInt(10*Math.sin(0.89714*(today/86400) + 1.5707) + 0.5)+100;
 	var turnprice=300;