summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rwxr-xr-xhome/xyz/.local/bin/dateft4
1 files changed, 1 insertions, 3 deletions
diff --git a/home/xyz/.local/bin/dateft b/home/xyz/.local/bin/dateft
index 269cb7f0..b3174749 100755
--- a/home/xyz/.local/bin/dateft
+++ b/home/xyz/.local/bin/dateft
@@ -22,9 +22,7 @@ date -d "$time_from"
TZ="Asia/Shanghai" date -d "$time_from"
date -d "$time_from" -u
date -d "$time_from" +%s
-if [ "$tz_from" ] && [ "$tz_from" != "Asia/Shanghai" ]; then
- TZ="$tz_from" date -d "$time_from"
-fi
+[ "$tz_from" ] && [ "$tz_from" != "Asia/Shanghai" ] && TZ="$tz_from" date -d "$time_from"
IFS=','
for tz in $tz_to; do
TZ="$tz" date -d "$time_from"