You would have to modify the code
https://github.com/traccar/traccar-web/blob/36b8953bf453d5c1b2913336ae9b7189fcac64e4/src/reports/components/ReportFilter.jsx#L48
When you select "custom", it should give you last hour by default.
Hello, thank you both for your responses.
Anton, your answer is correct, but there's a mistake.
When you select Custom, it does show the current date and the last hour, but for example, if I select Custom at 9:30 and 45 minutes have passed, and it's already 10:15, and I select Custom again, it still shows the period from 8:30 to 9:30.
The only way is to press F5 and refresh the browser. I haven't tried it on my phone yet, but I should close and reopen the app.
Yeah, it only pre-sets it once. It's not a mistake.
Ups, ok so is no way to add last hour to the Menu?
Of course there is - in the code.
Last question, if i modify the code, each time i update traccar to newer version i lost the item in the menu??, are any way to add something to the config file, so everytime i update Traccar i dont lost the "Last Hour Replay"
Thanks in advance
You would have to reapply your change on top of new versions, of course.
Hi, I'd like to know if there's a way to add the last-hour option to the vehicle replay menu.
The shortest option is today, and sometimes I just need to see the latest movements.
It could be added to the menu by adding something in the settings, or could it be considered for a future update.
Thanks.