Hi,

when i use custom collector to read mssql table, sentinel system
log prompt from web UI:

Parsing failed: JavaException: java.lang.RuntimeException:
java.text.ParseException: Unparseable date: "2014-01-03 17:03:00.0";
input:

collector use query statement to retrieve datetime from REQUEST_TM
field: 2014-01-03 17:03:00.000

i use following codes in release.js to transmit datetime to
setObserverEventTime but apear Unparseable date message, why?

var detstring =
this.RXMap.col_REQUEST_TM.replace(/(\d{4})\-(\d+)\-(\d+)
(\d+\:\d+\:\d+)\.\d+/, "$2/$3/$1 $4 GMT");
var dt = new Date(detstring);
e.setObserverEventTime(dt);
instance.SEND_EVENT = true;

BR
Steve zeng


--
steve_zeng
------------------------------------------------------------------------
steve_zeng's Profile: https://forums.netiq.com/member.php?userid=3875
View this thread: https://forums.netiq.com/showthread.php?t=50291