traggo / server

self-hosted tag-based time tracking
https://traggo.net
GNU General Public License v3.0
1.09k stars 56 forks source link

How to configure a dashboard static range? #101

Open TheWiresharkGuy opened 2 years ago

TheWiresharkGuy commented 2 years ago

Have you read the documentation?

You are setting up traggo in

Describe your problem Hi, I'd like to know what to type to define a static range? What is the correct way to specify a date?

I've tried to use the example in the doc and other date formats, but none of them seemed to work (see screenshot)

image

(from https://traggo.net/terminology/#static-range)

Thanks in advance!

Any errors, logs, or other information that might help us identify your problem

Ex: docker-compose.yml, nginx.conf, browser requests, etc.

image

jmattheis commented 2 years ago

Hey, this seems a little buggy because it is hardcoded and independent on the date locale. The format that should work is YYYY-MM-DD HH:mm. Example: 2021-10-10 14:11

So the time must be 24h based and PM / AM must be omitted.

jmattheis commented 2 years ago

Uhh, this is still broken, the backend doesn't understand 2021-10-10 14:11.

jmattheis commented 2 years ago

If someone wants to fix this, I'd be open for a PR. The backend expects the date range to be formatted like RFC3339, so the UI should only allow a static date range to be formatted in the RFC3339 format.

TheWiresharkGuy commented 2 years ago

Thanks for the quick explanation!

image

No more UX error, but indeed GraphQL complains afterwards :/

image

lifo9 commented 2 years ago

@TheWiresharkGuy, I too struggled with this issue, the input really accepts only rfc3339 formated datetime - e.g. 2021-11-02T00:00:00Z

langfingaz commented 2 years ago

Hey, this seems a little buggy because it is hardcoded and independent on the date locale. The format that should work is YYYY-MM-DD HH:mm. Example: 2021-10-10 14:11

So the time must be 24h based and PM / AM must be omitted.

It would be nice to add this to the documentation, once the UI of the front-end has been fixed.

filcuk commented 2 years ago

I'm on 0.2.3@f31968c1 Currently rfc3339 format shows as invalid both in UI and in the logs, as does any other date format I've tried:

Relative dates work just fine.

pedrohba1 commented 1 year ago

Is it feasible to integrate a date picker UI? Just to make this process easier

pedrohba1 commented 1 year ago

I would like to submit a datepicker feauter if possible, although I believe the easy path would be just using a datepicker module from material-ui or something else to give the back-end what it wants.

jmattheis commented 1 year ago

Is it feasible to integrate a date picker UI? Just to make this process easier

Yes, but the first step would be to fix the bug. Afterward, we can think about improving the user experience.

marksie1988 commented 1 year ago

Any news on when this will be fixed? I want to use Traggo but this kind of makes it useless for my needs.

Doesn't look like there has been a release since April 2022?

madotha commented 1 year ago

I've stumbled across the same problem today, it's not working in:

However a friend helped me out to at least get it working when having an editable time range in a dashboard, with the following format (same as discussed above, but also including milliseconds):

2023-01-01T00:00:00.000Z

Maybe this could help fixing the bug in the time parser?

c-nv-s commented 1 year ago

a date picker would be greatly appreciated once this is resolved