Comments (7)
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.
from reporter.
Great work with your reporter.
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?
from reporter.
Any of the options you propose is fine for me, maybe using a variable is more flexible.
As the developer you decide which one you like the most or the one that is easiest to implement.
Thanks!
from reporter.
Hi Izak,
Thanks for this superb software. I suggest that the reporter get the server's local time zone, if possible, and use that as the default. The user could then override that with a query parameter.
from reporter.
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.
If you want to get fancy later on and add a time zone parameter then that would be awesome, but for now I think displaying local time is a better default behaviour than UTC.
Thanks again.
from reporter.
@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.
from reporter.
Thanks for the test.
from reporter.
Related Issues (20)
- How to set the size of imported pdf HOT 2
- Openshift Grafana route addr update instead of Grafana IP and port into Grafana reporter. HOT 3
- Grafana device or resource busy HOT 1
- Time span Required (and only used) in command line mode. (default "from=now-3h&to=now")
- Does this support repeat variable? HOT 1
- pdfTeX error HOT 1
- ERROR rendering PNGs in parralel for dash HOT 7
- Reporter Not Working HOT 1
- How to custom textTemplate.go
- Error generating report: error fetching dashboard xxx HOT 1
- Reporting breaks with HTTPS Grafana server HOT 1
- Error on get panel Info "Unexpected error" HOT 1
- Adding grid layout to Link in Grafana Dashboard settings HOT 2
- How to manipulate variables ? HOT 5
- dial tcp 127.0.0.1:3000: connect: connection refused HOT 5
- Generate horizontal pdf HOT 1
- Collapsed rows omitted from report generation - expected behavior? HOT 1
- Run grafana-reporter in the background HOT 3
- Grafana SNAPSHOT URL
- Grafana Open Source API token Issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reporter.