fix(route): qweather/now timezone (#10734)

This commit is contained in:
miles 2022-09-07 12:46:26 +00:00 committed by GitHub
parent 1daf3a3242
commit 7ef62beb65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@ const got = require('@/utils/got');
const { art } = require('@/utils/render');
const path = require('path');
const { parseDate } = require('@/utils/parse-date');
const timezone = require('@/utils/timezone');
const config = require('@/config').value;
const rootUrl = 'https://devapi.qweather.com/v7/weather/now?';
module.exports = async (ctx) => {
@ -27,7 +26,7 @@ module.exports = async (ctx) => {
const data = [responseData.now];
const timeObj = timezone(parseDate(responseData.updateTime), +8);
const timeObj = parseDate(responseData.updateTime);
const time_show = timeObj.toLocaleString();