-
Notifications
You must be signed in to change notification settings - Fork 302
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
Time zone always in UTC #43
Comments
Thanks! Glad you found it useful. Always interested in hearing who is using it and where, if you don't mind sharing. This is hard coded currently. Would you typically like to set this per dashboard as a query parameter, or would per reporter instance as a command line flag be sufficient? |
Any of the options you propose is fine for me, maybe using a variable is more flexible. Thanks! |
Hi Izak, |
I had a wee play with the code. Simply removing the UTC(). from the time formatting lines produces a report that displays time as the server's local time. I think this should be the default behaviour since most people want to read reports that display their local time. Thanks again. |
@thnurg Thanks for the suggestion, sounds easy enough. So if the server is in UTC the behaviour stays unchanged. I will implement this when I have time, sounds like a quick and easy change. |
I just had a thought regarding daylight savings. Those of use who practice that needless software overhead every year will probably have had the change over the last few weeks, so I pulled a report for March 22nd. (We switched from GMT to BST on March 24th.) The report showed the time in GMT. If I generate one for today then it will show BST. Go is obviously handling the server's timezone correctly. I wondered if daylight savings might cause issues generating reports that occurred before the most recent change but am happy to report that's not the case. |
Thanks for the test. |
Hello.
Great work with your reporter.
The pdf report shows the time as UTC. Is there anyway to show it in other time zone like CET?
I have already tried to change the dashboard configuration but the report always shows UTC time zone.
The text was updated successfully, but these errors were encountered: