Skip to content

Commit

Permalink
Modified calculation of message injection point minutes to be able to…
Browse files Browse the repository at this point in the history
… handle multi-day messaging
  • Loading branch information
gwehr1 committed Jan 11, 2024
1 parent fdf479d commit 650614c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void loadJsonMessagesForZones(String msgFile, String zonesFile) throws IOExcepti
Date date = format.parse(message.getBroadcastHHMM());
Calendar cal = Calendar.getInstance();
cal.setTime(date);
double minutes = 60 * cal.get(Calendar.HOUR_OF_DAY) + cal.get(Calendar.MINUTE);
double minutes = 60 * 24 * (cal.get(Calendar.DAY_OF_YEAR) - 1) + 60 * cal.get(Calendar.HOUR_OF_DAY) + cal.get(Calendar.MINUTE);
// get the enclosing polygon for each zone
TreeMap<String,Double[][]> map = message.getBroadcastZones();
for (String zoneId : map.keySet()) {
Expand Down

0 comments on commit 650614c

Please sign in to comment.