eclipse-apoapsis / ort-server

A scalable server implementation of the OSS Review Toolkit.
Apache License 2.0
15 stars 7 forks source link

Show the creation time in the ORT runs table #656

Closed mnonnenmacher closed 2 weeks ago

mnonnenmacher commented 2 weeks ago

Currently, the ORT runs table only shows the date when a run was created. Also show the time, because the date alone is not sufficient information when many runs were started on the same day.

image

sschuberth commented 2 weeks ago

Somewhat related, after reading though this I wonder whether we should stop using new Date() and rather use a library that could also be used to replace our own calculateDuration(), which I'd like to show days as well. @mmurto any opinion?

mmurto commented 2 weeks ago

I think we're relatively safe with the native Date as all timestamps come from the database and I'd assume they're well and consistently formatted. I've used date-fns for more advanced stuff, it's good.

Where did you run to showing days? Isn't it currently used for run durations, I'd like to believe they're more in the minutes and hours range. :D

sschuberth commented 2 weeks ago

Where did you run to showing days?

Check global run ID 6 in our instance 😉