]> git.99rst.org Git - openwrt-packages.git/commitdiff
banip: report the last run timestamp as ISO 8601
authorDirk Brenken <redacted>
Thu, 6 Aug 2026 19:26:44 +0000 (21:26 +0200)
committerDirk Brenken <redacted>
Thu, 6 Aug 2026 19:26:44 +0000 (21:26 +0200)
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 <redacted>
net/banip/Makefile
net/banip/files/banip-functions.sh

index 6b368bc435f1c4020cabed4aed7f3e24ac6ebf56..3f00079143cbc7dbb70c6c3f829c9f16c3d616bf 100644 (file)
@@ -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 <dev@brenken.org>
 
index a0f58bbc823a7f2bb2b6c9ca1d2f432058aeebcd..982e0621bd3b210d9f39d124e7279bec10d1b789 100644 (file)
@@ -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"
git clone https://git.99rst.org/PROJECT