Change date format for filename

Some tools (like Ms Teams) do not accept some characters like : 
So I propose to change the date format or we could add a parameter option
This commit is contained in:
Matteo Redaelli 2020-11-26 18:17:43 +01:00 committed by GitHub
parent 32b93ef6ea
commit 6383062004
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ fi
ACTION=${1:-usage} ACTION=${1:-usage}
SUBJECT=${2:-screen} SUBJECT=${2:-screen}
FILE=${3:-$(getTargetDirectory)/$(date -Ins).png} FILE=${3:-$(getTargetDirectory)/$(date +"%Y-%m-%dT%H-%M-%S-%3N").png}
if [ "$ACTION" != "save" ] && [ "$ACTION" != "copy" ] && [ "$ACTION" != "check" ]; then if [ "$ACTION" != "save" ] && [ "$ACTION" != "copy" ] && [ "$ACTION" != "check" ]; then
echo "Usage:" echo "Usage:"