From: Dirk Brenken Date: Wed, 5 Aug 2026 16:27:10 +0000 (+0200) Subject: adblock: report the last run timestamp as ISO 8601 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=ec4ca5c917337e15a055d0550b6d409fedde033b;p=openwrt-packages.git adblock: 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. 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 --- diff --git a/net/adblock/Makefile b/net/adblock/Makefile index c7a7944a6..64c863725 100644 --- a/net/adblock/Makefile +++ b/net/adblock/Makefile @@ -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 diff --git a/net/adblock/files/adblock.sh b/net/adblock/files/adblock.sh index 91cd636a6..7ed0cb392 100755 --- a/net/adblock/files/adblock.sh +++ b/net/adblock/files/adblock.sh @@ -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"