]> git.99rst.org Git - openwrt-packages.git/commitdiff
adblock: report the last run timestamp as ISO 8601
authorDirk Brenken <redacted>
Wed, 5 Aug 2026 16:27:10 +0000 (18:27 +0200)
committerDirk Brenken <redacted>
Wed, 5 Aug 2026 16:27:10 +0000 (18:27 +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. The DNS report already derives its timestamps from
tcpdump -tttt and is ISO 8601, so both views now agree, and the format is
unambiguous regardless of the reader's locale.

Signed-off-by: Dirk Brenken <redacted>
net/adblock/Makefile
net/adblock/files/adblock.sh

index c7a7944a61f196c9c0f41353b99770684f43b455..64c863725105c21a860284bcd2c6f8280383da2d 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=adblock
 PKG_VERSION:=4.5.7
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
 
index 91cd636a6aa11e09bad2476b8cfa319c9ffb3d3c..7ed0cb39262d2fe883db7363b326b26b0f80a465 100755 (executable)
@@ -1737,7 +1737,7 @@ f_jsnup() {
                        end_time="${end_time%.*}"
                        duration="$(((end_time - adb_starttime) / 60))m $(((end_time - adb_starttime) % 60))s"
                fi
-               runtime="mode: ${adb_action}, date / time: $(date "+%d/%m/%Y %H:%M:%S"), duration: ${duration:-"-"}, memory: ${free_mem:-0} MB available"
+               runtime="mode: ${adb_action}, date / time: $(date "+%Y-%m-%d %H:%M:%S"), duration: ${duration:-"-"}, memory: ${free_mem:-0} MB available"
                ;;
        "resume")
                status="enabled"
git clone https://git.99rst.org/PROJECT