fix . not in printf

This commit is contained in:
olli 2024-11-02 17:16:19 +01:00
parent 98d185067b
commit bf0bb1e77e

View File

@ -39,7 +39,7 @@ function currency_converter {
fi
# get current date if none given
[ -z "$f_currency_date" ] && printf -v f_currency_date '%(%Y-%m-%d.%H:%M:%S)T'
[ -z "$f_currency_date" ] && printf -v f_currency_date '%(%Y-%m-%d %H:%M:%S)T'
# rate per minute
f_currency_date_minute=$(date -d "${f_currency_date}" "+%Y-%m-%d.%H:%M")