ummon-server / ummon-server

Ummon is node.js application for creating, queuing, running and monitoring externally running tasks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inconsistent timestamps in ummon log command line parameters

mkopinsky opened this issue · comments

When I run ummon log some.task --runs-only, it returns the run times in Zulu (UTC) time. The --from parameter requires you to use local time.

Is the best solution here to have --runs-only report local time? If so, I can implement.

Actually, no. If bunyan reports in zulu time, we shouldn't change how --runs-only reports. Bunyan does not have a switch in the command line for how to print out times, but maybe it's just dumping out using the format given in the JSON sent from the server. This requires some more investigation.

Seems that bunyan will just print whatever we give it in the "time": parameter. So it probably makes sense to add a --local or --UTC parameter to ummon log and ummon log --runs-only which will output the logs with that style of formatting.