mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-11 07:37:24 +08:00
fix: weather timezone
This commit is contained in:
parent
431ebb59c2
commit
4d274df6b2
@ -110,5 +110,6 @@ weatherDaily['daily'].forEach(
|
|||||||
|
|
||||||
function get_time_hour(fxTime) {
|
function get_time_hour(fxTime) {
|
||||||
// fxTime 2024-05-03T02:00+08:00'
|
// fxTime 2024-05-03T02:00+08:00'
|
||||||
|
fxTime = fxTime.replace("-", "+")
|
||||||
return fxTime.split("T")[1].split("+")[0]
|
return fxTime.split("T")[1].split("+")[0]
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user