diff options
Diffstat (limited to 'home')
-rwxr-xr-x | home/xyz/.local/bin/dateft | 4 |
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" |