@cryptotaxi247 / netdata-1 / commits / c160d92b0

Fix the new date handling in alarm-notify.sh

The original commit unintentionally capitalized the name of the `date_format` variable in plugins.d/alarm-notify.sh, which caused the new date handling support to not work at all (but thankfully did not break any existing functionality). This corrects that issue, so that the new date handling support works correctly.

Austin S. Hemmelgarn committed May 14, 2018 at 13:09 UTC c160d92b0b923e5afa3e1f75c543e69f47089e7c
1 file changed +2 -2
plugins.d/alarm-notify.sh
+2 -2
@@ -776,8 +776,8 @@ fi
776 # -----------------------------------------------------------------------------
777 # get the date the alarm happened
778
779 -date=$(date --date=@${when} "${DATE_FORMAT}" 2>/dev/null)
780 -[ -z "${date}" ] && date=$(date "${DATE_FORMAT}" 2>/dev/null)
779 +date=$(date --date=@${when} "${date_format}" 2>/dev/null)
780 +[ -z "${date}" ] && date=$(date "${date_format}" 2>/dev/null)
781 [ -z "${date}" ] && date=$(date --date=@${when} 2>/dev/null)
782 [ -z "${date}" ] && date=$(date 2>/dev/null)
783