kube-monkey icon indicating copy to clipboard operation
kube-monkey copied to clipboard

Timezone of log timestamps

Open zslim opened this issue 5 years ago • 1 comments

Hi! I parse kubemonkey logs in an automating script and I extract timestamps for scheduling times and termination times. I configured the timezone of my location and termination times are displayed according to that, but the timestamps at the beginning of the lines are not. So my extracted timestamps are mismatched in timezone.

log_screenshot

I can solve this with a simple workaround as long as I know the time difference, but I'd like to write my script so that it can be run in any timezone. Now the difference happens to equal the difference between my timezone (CEST) and UTC. Can I assume that the log timestamp is always in UTC? If not, is there a setting somewhere where I can fix this mismatch?

Thank you.

zslim avatar Sep 19 '19 13:09 zslim

That sounds very reasonable. If you have a PR, I'd be happy to take a look.

asobti avatar Sep 20 '19 00:09 asobti