修改时间为4PM

This commit is contained in:
qibin 2025-06-01 22:19:52 +08:00
parent ab43f5f8b9
commit a38ea6964f

View File

@ -50,12 +50,11 @@ export const useStockQuote = createGlobalState(() => {
'&to=' +
toDate;
const res = await axios.get(url)
// console.error(res)
if (res.status === 200) {
if (res.data.status === 0) {
lastTradingDay = dayjs(res.data.data[0].date)
}
return lastTradingDay.format('MMM D, YYYY, h:mm A [EDT]')
return lastTradingDay.format('MMM D, YYYY') + ' 4:00 PM [EDT]'
}
}