修改highstock插件,关闭时区矫正

This commit is contained in:
Li Jianxuan 2014-06-13 06:14:27 +00:00
parent 9ad746b0e4
commit 2c78aadeed
2 changed files with 19 additions and 8 deletions

View File

@ -13,13 +13,20 @@ $this->breadcrumb()->setSeparator(' > ');
<div class="span12">
<h3><?= $this->info['title'] ?> <small>数据可视化查看</small></h3>
<h4><small>请在需要查看的可视化要素上点击以描绘图表,再次点击可取消显示,绘制图像前可自主选择图像类型</small></h4>
<div class="row-fluid">
<div class="span6">
<div class="btn-group linetypes" data-toggle="buttons-radio">
<button type="button" class="btn active" value="line">折线图</button>
<button type="button" class="btn" value="column">柱状图</button>
</div>
</div>
<div class="span6 text-right">
<a class="btn btn-primary control-btn-cls" href="javascript:void(0);">
清除图像
</a>
</div>
</div>
<hr />
<?php $vars = (new \Westdc\Visual\VariableEncoder)->normaldecode($this->data['vars']);?>
@ -41,6 +48,7 @@ $this->breadcrumb()->setSeparator(' > ');
<script>
_this = {};
_this.linetype = 'line';
_this.utctimezone = false;
$(function() {
$('.linetypes button').click(function(e) {
@ -52,6 +60,9 @@ $(function() {
months : [ '一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
//months : ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
weekdays: ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日']
},
global: {
useUTC: _this.utctimezone
}
});

View File

@ -101,6 +101,6 @@ class Record
if(empty($time))
return (time()+8*3600)*1000;
else
return ($time+8*3600)*1000;
return ($time)*1000;
}
}