datalust / seq-tickets

Issues, design discussions and feature roadmap for the Seq log server
https://datalust.co/seq
97 stars 5 forks source link

Be less strict when parsing custom date ranges #2045

Closed ticosido closed 9 months ago

ticosido commented 10 months ago

If I want to display log entries for a custom date range, I can enter a start date and an end date. On my system these are displayed like this:

image

If I want to change the values, I have to enter them in precisely this format. If I enter something in a different format (e.g. dd/mm/yyyy), an error message is displayed, telling me that the date format is invalid.. For example:

image

Could this be changed so it's less strict about the date format?

liammclennan commented 10 months ago

Hi @ticosido,

This dialog does support a lot of different date formats, just not that one. For the same number of characters you can do 2023-12-13 and it will work. Also, you can click on the month and year and choose a date that way.

ticosido commented 9 months ago

"yyyy-mm-dd" does work as you say, but you have to include the leading zeros - 2024-01-01 is fine, but 2024-1-1 is not.

GWeidmann commented 9 months ago

I don't like that this is valid ...

image

... but these are not

image image

It would be great to just be able to enter the numbers and to get the time, e.g. Grindstone does this great

image image image image

liammclennan commented 9 months ago

@ticosido @GWeidmann a date parsing improvement has been merged and will be in 2024.1.