summaryrefslogtreecommitdiffstats
path: root/plugins.d
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <ahferroin7@gmail.com>2018-05-14 13:09:32 -0400
committerAustin S. Hemmelgarn <ahferroin7@gmail.com>2018-05-14 13:09:32 -0400
commitc160d92b0b923e5afa3e1f75c543e69f47089e7c (patch)
tree9c96c565275067a00c910ecd2483715893f9d371 /plugins.d
parent95e50ae8af2b904c4edc7d7d410ac63ba3cc862a (diff)
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.
Diffstat (limited to 'plugins.d')
-rwxr-xr-xplugins.d/alarm-notify.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins.d/alarm-notify.sh b/plugins.d/alarm-notify.sh
index bcaa304a9e..ad1e5c6f20 100755
--- a/plugins.d/alarm-notify.sh
+++ b/plugins.d/alarm-notify.sh
@@ -776,8 +776,8 @@ fi
# -----------------------------------------------------------------------------
# get the date the alarm happened
-date=$(date --date=@${when} "${DATE_FORMAT}" 2>/dev/null)
-[ -z "${date}" ] && date=$(date "${DATE_FORMAT}" 2>/dev/null)
+date=$(date --date=@${when} "${date_format}" 2>/dev/null)
+[ -z "${date}" ] && date=$(date "${date_format}" 2>/dev/null)
[ -z "${date}" ] && date=$(date --date=@${when} 2>/dev/null)
[ -z "${date}" ] && date=$(date 2>/dev/null)