Browse Source

this makes timezones work.. why this exact same code didn't work earlier

is beyond me...
main
John-Mark Gurney 4 years ago
parent
commit
507d668e2e
2 changed files with 7 additions and 8 deletions
  1. +2
    -3
      Makefile
  2. +5
    -5
      root/js/solardash.base.js

+ 2
- 3
Makefile View File

@@ -17,9 +17,8 @@ JSFILES = root/js/solardash.file.js root/js/solardash.https.js root/js/solardash
THIRDPARTYJS = \
root/js/jquery.js \
root/js/highstock.js \

# root/js/moment.min.js \
# root/js/moment-timezone-with-data.min.js
root/js/moment.min.js \
root/js/moment-timezone-with-data.min.js

root/js/jquery.js:
wget -O $@ "https://code.jquery.com/jquery-3.4.1.min.js" || (rm "$@"; false)


+ 5
- 5
root/js/solardash.base.js View File

@@ -1,8 +1,8 @@
//Highcharts.setOptions({
// time: {
// timezone: 'America/Los_Angeles'
// }
//});
Highcharts.setOptions({
time: {
timezone: 'America/Los_Angeles'
}
});

socket.onopen = function() {
// connected


Loading…
Cancel
Save