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

Report date & time is shown in UTC time zone #278

Closed
armandas opened this issue Sep 6, 2018 · 2 comments
Closed

Report date & time is shown in UTC time zone #278

armandas opened this issue Sep 6, 2018 · 2 comments

Comments

@armandas
Copy link

armandas commented Sep 6, 2018

For some reason, the HTML report date is shown in UTC time. I checked the source code for the html_generator.py and saw that it uses the following line to generate the date and time:

datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")

I ran that line on my server and got the correct date, but the HTML output is incorrect. Any ideas?

@armandas
Copy link
Author

armandas commented Sep 6, 2018

I just realised that may be caused by the fact that I am running gcovr in a Docker.

@armandas armandas closed this as completed Sep 6, 2018
@latk
Copy link
Member

latk commented Sep 6, 2018

The timestamp uses the host's local timezone. You can set the TZ environment variable to override the timezone.

See also PR #165 where explicit timezone or UTC support was discussed.

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