From: Dirk Brenken Date: Thu, 6 Aug 2026 19:26:44 +0000 (+0200) Subject: banip: report the last run timestamp as ISO 8601 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=23e2f530fe990b03e5d87bad9a499914caef92ad;p=openwrt-packages.git banip: report the last run timestamp as ISO 8601 The runtime status reported the last run as DD/MM/YYYY, which reads as a different date entirely for anyone used to month first ordering. Use YYYY-MM-DD instead for the frontpage and the Set reporting. The new ISO 8601 format is unambiguous regardless of the reader's locale. Signed-off-by: Dirk Brenken --- diff --git a/net/banip/Makefile b/net/banip/Makefile index 6b368bc43..3f0007914 100644 --- a/net/banip/Makefile +++ b/net/banip/Makefile @@ -5,8 +5,8 @@ include $(TOPDIR)/rules.mk PKG_NAME:=banip -PKG_VERSION:=1.8.10 -PKG_RELEASE:=2 +PKG_VERSION:=1.8.11 +PKG_RELEASE:=1 PKG_LICENSE:=GPL-3.0-or-later PKG_MAINTAINER:=Dirk Brenken diff --git a/net/banip/files/banip-functions.sh b/net/banip/files/banip-functions.sh index a0f58bbc8..982e0621b 100644 --- a/net/banip/files/banip-functions.sh +++ b/net/banip/files/banip-functions.sh @@ -1844,7 +1844,7 @@ f_genstatus() { end_time="${end_time%%.*}" duration="$(((end_time - ban_starttime) / 60))m $(((end_time - ban_starttime) % 60))s" fi - runtime="mode: ${ban_action}, date / time: $(date "+%d/%m/%Y %H:%M:%S"), duration: ${duration:-"-"}, memory: ${mem_free} MB available" + runtime="mode: ${ban_action}, date / time: $(date "+%Y-%m-%d %H:%M:%S"), duration: ${duration:-"-"}, memory: ${mem_free} MB available" fi [ -s "${ban_customfeedfile}" ] && custom_feed="1" [ "${ban_splitsize:-"0"}" -gt "0" ] && split="1"