From 1f17646ae5f7e2732bf422abec8d41927bff6cf1 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sat, 12 May 2012 18:52:40 +0000
Subject: [PATCH] Don't specify today as the start date for special event
 lookups anymore - The ARRL search now uses that as the day the call was
 issued, not as the range it was active for.

---
 exec/ircbots/ham/ham.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/exec/ircbots/ham/ham.js b/exec/ircbots/ham/ham.js
index 0c553fd3c3..13d73f72d6 100644
--- a/exec/ircbots/ham/ham.js
+++ b/exec/ircbots/ham/ham.js
@@ -289,8 +289,7 @@ Bot_Commands["CALLSIGN"].command = function (target,onick,ouh,srv,lvl,cmd) {
 	}
 
 	function USSpecialEvent(callsign,src,target) {
-		var today=strftime("%m%%2F%d%%2F%Y", time());
-		var result=new HTTPRequest().Post('http://www.arrl.org/special-event-stations', '_method=POST&data%5BSearch%5D%5Bcall_sign%5D='+callsign+'&data%5BSearch%5D%5Bkeywords%5D=&data%5BLocation%5D%5Bzip%5D=&data%5BLocation%5D%5Barea%5D=&data%5BLocation%5D%5Bcity%5D=&data%5BLocation%5D%5Bstate%5D=&data%5BLocation%5D%5Bdivision_id%5D=&data%5BLocation%5D%5Bsection_id%5D=&data%5BLocation%5D%5Bcountry%5D=&data%5BDate%5D%5Bstart%5D='+today+'&data%5BDate%5D%5Bend%5D=&=Search');
+		var result=new HTTPRequest().Post('http://www.arrl.org/special-event-stations', '_method=POST&data%5BSearch%5D%5Bcall_sign%5D='+callsign+'&data%5BSearch%5D%5Bkeywords%5D=&data%5BLocation%5D%5Bzip%5D=&data%5BLocation%5D%5Barea%5D=&data%5BLocation%5D%5Bcity%5D=&data%5BLocation%5D%5Bstate%5D=&data%5BLocation%5D%5Bdivision_id%5D=&data%5BLocation%5D%5Bsection_id%5D=&data%5BLocation%5D%5Bcountry%5D=&data%5BDate%5D%5Bstart%5D=&data%5BDate%5D%5Bend%5D=');
 		var m=result.match(/<h3>\s*([\s\S]*?)<\/p/);
 		if(m!=null) {
 			m[1]=m[1].replace(/<[^>]*>/g,'');
-- 
GitLab