Browse Source

修改k线时间

master
liaoxinyu 1 year ago
parent
commit
eab1ab8315
  1. 3
      static/chart_main/sevencoin.js

3
static/chart_main/sevencoin.js

@ -254,7 +254,8 @@ $(function () {
} }
timestampToTime(timestamp) { timestampToTime(timestamp) {
const dates = new Date(timestamp); const dates = new Date(timestamp);
const date = this.adjustToEasternTime(dates); const resolutionTime = this.getResolutionTime()
const date = resolutionTime === 1 ? dates : this.adjustToEasternTime(dates);
const yyyy = `${date.getFullYear()}`; const yyyy = `${date.getFullYear()}`;
const yy = `${date.getFullYear()}`.substr(2); const yy = `${date.getFullYear()}`.substr(2);

Loading…
Cancel
Save