Skip to content

Commit

Permalink
updated to use latest feed.js in core
Browse files Browse the repository at this point in the history
  • Loading branch information
TrystanLea committed Nov 5, 2021
1 parent 357c8e3 commit cebee7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dashboard_controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function dashboard_controller()
$dashboard = new Dashboard($mysqli);
// id, userid, content, height, name, alias, description, main, public, published, showdescription, fullscreen

$js_css_version = 8;
$js_css_version = 9;

$result = false; $submenu = '';

Expand Down
8 changes: 4 additions & 4 deletions widget/kwhperiod/kwhperiod_render.js
Original file line number Diff line number Diff line change
Expand Up @@ -711,12 +711,12 @@ function kwhperiod_draw () {
previousRefresh = new Date(now)
if (periodsAgo > 0 || useLastYear) {
// pastPeriodEndValue
var result = feed.get_value(feedid, pastperiodEndTime.getTime())
var result = feed.getvalue(feedid, pastperiodEndTime.getTime()*0.001)
//console.log(result, 'past period end')
var pastPeriodEndValue = result[1]

// pastPeriodStartValue
var result = feed.get_value(feedid, pastPeriodStartTime.getTime())
var result = feed.getvalue(feedid, pastPeriodStartTime.getTime()*0.001)
//console.log(result, 'past period start')
var pastPeriodStartValue = result[1]

Expand All @@ -736,12 +736,12 @@ function kwhperiod_draw () {
} else {
// thisperiodEndValue
/*
var result = feed.get_value(feedid, now.getTime())
var result = feed.getvalue(feedid, now.getTime()*0.001)
console.log(result, 'recent period end / now')
var thisperiodEndValue = result[1]
*/
// thisPeriodStartValue
var result = feed.get_value(feedid, thisPeriodStartTime.getTime())
var result = feed.getvalue(feedid, thisPeriodStartTime.getTime()*0.001)
//console.log(result, 'recent period start value')
var thisPeriodStartValue = result[1]

Expand Down

0 comments on commit cebee7b

Please sign in to comment.