8c8
< #current="$1" ; shift
---
> current=”$1″ ; shift
80c81
< if ! secs=$(LANG=C date -j -f "%Y-%m-%d %H:%M:%S" "$ts" +%s)
---
> if ! secs=$(LANG=C date +%s -d “$ts”)
82c83
< || ! nowsecs=$(LANG=C date +%s)
---
> || ! nowsecs=$(LANG=C date +%s -d “$now”)
89c90
< if ! min_time=$(LANG=C date -j -f "%s" "$min_timesecs" +"%Y-%m-%d %H:%M:%S")
---
> if ! min_time=$(LANG=C date -d @$min_timesecs +”%Y-%m-%d %H:%M:%S”)