Spondoolies-Tech / minepeon

Miner UI
GNU General Public License v2.0
0 stars 3 forks source link

Graphs time incorrect #68

Open SyRenity opened 10 years ago

SyRenity commented 10 years ago

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.

SyRenity commented 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.

SyRenity commented 10 years ago

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?