Skip to content
Snippets Groups Projects
Commit 949e51d2 authored by Terry D. Norbraten's avatar Terry D. Norbraten
Browse files

[Terry N.] adjust timestamp

parent e3811f27
No related branches found
No related tags found
No related merge requests found
...@@ -466,7 +466,7 @@ public class CoTMsgParserDisRunner extends CoTparser ...@@ -466,7 +466,7 @@ public class CoTMsgParserDisRunner extends CoTparser
Date time = cotEvent.getTime(); Date time = cotEvent.getTime();
String timeStepMessage = "CoT message timestamp: " + time; String timeStepMessage = "CoT message timestamp: " + time;
getDisChannel().sendCommentPdu(time.getTime()/1000L, DisChannel.COMMENTPDU_TIME, timeStepMessage); getDisChannel().sendCommentPdu(time.getTime()/1000L, DisChannel.COMMENTPDU_TIME, timeStepMessage);
entityStatePdu_1.setTimestampSeconds(time.getTime()/1000L); // milli to sec past 01 JAN 1970 00:00:00 GMT entityStatePdu_1.setTimestamp((int) (time.getTime()/1000L)); // milli to sec past 01 JAN 1970 00:00:00 GMT
CotPoint point = cotEvent.getPoint(); CotPoint point = cotEvent.getPoint();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment