Open SyRenity opened 10 years ago
Caused because we running the graph generation in cron (rather on every request like in stock minepeon), thus the generation is using miner local UTC time.
The solution is to have the rrdtool generation function to take the set timezone in minepeon.conf into account.
Asked Neil what the correct parameter to rrdtool will be to set the correct time-scale.
Neil has suggested the following: "You can just export the correct time zone (read from minepeon.conf) at the top of the cron job, just a quick google for an example and it should look something like this;-
export TZ="/usr/share/zoneinfo/{TIMEZONE-DIRECTORY}/{TIMEZONE_FILE}"
Substitute your own paths of coarse. You will also need to add the tzinfo package to your build (if you have not already)."
@zvisha Do we have the tzinfo package in the build?
BTW just to report a small "bug" with the graphs on the homepage of the miner status. Eventhough I have select my timezone (Athens) and miner time says the correct time, the graphs seem to be stuck at GMT (so it is 3 hours back). So current time is 14:21 but the graph shows 11:20.