mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 09:58:26 +00:00
fixes hard-wired created date
(https://github.com/eikek/docspell/pull/403#discussion_r513790807)
This commit is contained in:
@ -146,7 +146,7 @@ do
|
||||
rm "$tmp_filepath"
|
||||
else
|
||||
created=$(echo $curl_result | jq -r ".items[0].created")
|
||||
cur_dir="$ds_archive_path/$(date -d @$(echo "(1603892183000+500)/1000" | bc) +%Y-%m
|
||||
cur_dir="$ds_archive_path/$(date -d @$(echo "($created+500)/1000" | bc) +%Y-%m
|
||||
)"
|
||||
echo "... moving to archive by month added ('$cur_dir')"
|
||||
mkdir -p "$cur_dir"
|
||||
|
Reference in New Issue
Block a user