From 4a0d0e9acd5d9a1cc7612dbcdb87452f888e4423 Mon Sep 17 00:00:00 2001 From: Steven Baltakatei Sandoval Date: Tue, 28 Apr 2026 08:25:50 +0000 Subject: [PATCH 1/1] fix(user/bkdatev):Fix --date='' functionality for right/UTC --- user/bkdatev | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/bkdatev b/user/bkdatev index fe60499..fb0b96c 100755 --- a/user/bkdatev +++ b/user/bkdatev @@ -2,7 +2,7 @@ # Desc: Baltakatei's verbose date command # Usage: bkdatev [args] # Example: bkdatev --date="2001-09-11T09:02:59-04" -# Version: 1.0.3 +# Version: 1.0.4 # Depends: GNU Coreutils 8.32, Bash 3.2.57, tzdata-legacy # Ref/Attrib: [1] "ISO 8601". Wikipedia. https://en.wikipedia.org/wiki/ISO_8601 # [2] "Changing the Locale in Wine" https://stackoverflow.com/a/16428951 @@ -148,7 +148,7 @@ main() { id="UTC"; path_right_tz="/usr/share/zoneinfo/right/UTC"; if [[ -f "$path_right_tz" ]]; then - date_string="$(date -Is)"; + date_string="$(date -Is "$@"; )"; right_epoch="$(TZ=right/UTC date --date="$date_string" +%s;)"; # see [4] fs_3="+%s POSIX seconds (${right_epoch} real) since 1970-01-01T00:00+00"; else -- 2.39.5