Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezone of log timestamps #155

Open
zslim opened this issue Sep 19, 2019 · 1 comment
Open

Timezone of log timestamps #155

zslim opened this issue Sep 19, 2019 · 1 comment

Comments

@zslim
Copy link

zslim commented Sep 19, 2019

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.

@asobti
Copy link
Owner

asobti commented Sep 20, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants