Browse Source

修改

master
liaoxinyu 2 years ago
parent
commit
c90cab13af
  1. 6
      static/chart_main/sevencoin.js

6
static/chart_main/sevencoin.js

@ -253,12 +253,14 @@ $(function () {
tvQuoter.find('[data-name="zhangdiee"]').css('color',zhangdiee>0?'#53b987':'#eb4d5c');
}
timestampToTime(timestamp) {
const date = new Date(timestamp);
const thirteenHoursMs = 13 * 60 * 60 * 1000;//修改时间只需要修改 那个13就行了
const adjustedTimestamp = timestamp - thirteenHoursMs;
const date = new Date(adjustedTimestamp);
const yyyy = `${date.getFullYear()}`;
const yy = `${date.getFullYear()}`.substr(2);
const MM = `0${date.getMonth() + 1}`.slice(-2);
const dd = `0${date.getDate()}`.slice(-2);
const HH = `0${date.getHours()-13}`.slice(-2);
const HH = `0${date.getHours()}`.slice(-2);
const mm = `0${date.getMinutes()}`.slice(-2);

Loading…
Cancel
Save