jazzband / Watson

:watch: A wonderful CLI to track your time!
http://tailordev.github.io/Watson/
MIT License
2.44k stars 239 forks source link

watson report ignores options.date_format #497

Open thmsklngr opened 1 year ago

thmsklngr commented 1 year ago

Hi,

I like watson even though it's a bit confusing looking for it since it has a similar name like an IBM product. :)

I found an error, which is described pretty fast. I configured a specific date format and when running a report this format is ignored. Example:

$ watson config options.date_format
%d.%m.%Y

$ watson report -f 01.03.2023
Usage: watson report [OPTIONS]
Try 'watson report --help' for help.

Error: Could not match value '01.03.2023' to any supported date format

$watson report -f 2023-03-01
Wed 01 March 2023 -> Fri 03 March 2023

Misc - 4h 00m 00s
    [STWERT  4h 00m 00s]

SVMM - 4h 00m 00s
    [svmm_root_job_ng  4h 00m 00s]

Total: 8h 00m 00s

That's all. If I have time, I may provide a patch for it, otherwise please it yourself, if you're fast. :)