Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tasks from the past #29

Open
varac opened this issue Feb 6, 2023 · 2 comments
Open

Add tasks from the past #29

varac opened this issue Feb 6, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@varac
Copy link

varac commented Feb 6, 2023

I haven't found a way to add tasks from i.e. last week. Maybe it's just me, but the docs only show an example how you would add a task that started a few hours ago, not days.
Is this possible right now ? If yes, please document an example how to achieve this.
If not, please add this option. Thanks !

@J-U-B
Copy link

J-U-B commented Sep 13, 2023

I'm also looking for a way to do that.
I tried:

zeit track -p "TESTS" -t "Zeit-Test" -b '2023-09-11T20:00' -s '2023-09-11T21:00'
zeit track -p "TESTS" -t "Zeit-Test" -b '2023-09-11T20:00:00' -s '2023-09-11T21:00:00'
zeit track -p "TESTS" -t "Zeit-Test" -b '2023-09-11T20:00:00+02:00' -s '2023-09-11T21:00:00+02:00'

But in any case, I get only as a response:

 ▲ could not match passed time

A messy workaround:

zeit track -t DUMMY 
ZID=$(zeit list --no-colors | grep DUMMY|cut -f1 -d ' ' ); echo $ZID
zeit entry ${ZID} -b "2023-09-11T20:00" -s '2023-09-11T21:00'  -t Zeit-Test -p TESTS

That's not pretty, but it works until the problem is fixed.

@mrusme
Copy link
Owner

mrusme commented Sep 13, 2023

In order to use absolute timestamps this function would require a few changes. Right now it only accepts hour formats, ideally however it should accept any given format. Ideally this function should make use of a dedicated library that can do more complex time parsing magic.

@mrusme mrusme added the enhancement New feature or request label Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants