Closed dominikbraun closed 3 years ago
For example, the get record command has the following syntax:
get record
https://github.com/dominikbraun/timetrace/blob/16b10a97b594a7e73145096e84b6fb9672048df2/cli/get.go#L53-L56
Actually, YYYY-MM-DD-HH-MM is only the default syntax. If the user has set use12hours: true in their config, the expected format is YYYY-MM-DD-HH-MMPM instead, as you can see here:
YYYY-MM-DD-HH-MM
use12hours: true
YYYY-MM-DD-HH-MMPM
https://github.com/dominikbraun/timetrace/blob/16b10a97b594a7e73145096e84b6fb9672048df2/cli/get.go#L58-L62
The Use field of the command should be changed accordingly, being sensitive to the actual configuration.
Use
Resolved by 54.
For example, the
get record
command has the following syntax:https://github.com/dominikbraun/timetrace/blob/16b10a97b594a7e73145096e84b6fb9672048df2/cli/get.go#L53-L56
Actually,
YYYY-MM-DD-HH-MM
is only the default syntax. If the user has setuse12hours: true
in their config, the expected format isYYYY-MM-DD-HH-MMPM
instead, as you can see here:https://github.com/dominikbraun/timetrace/blob/16b10a97b594a7e73145096e84b6fb9672048df2/cli/get.go#L58-L62
The
Use
field of the command should be changed accordingly, being sensitive to the actual configuration.