joshuaulrich / quantmod

Quantitative Financial Modelling Framework
http://www.quantmod.com/
GNU General Public License v3.0
794 stars 219 forks source link

getSymbols.yahoo ignores exchange TZ when converting timestamps to Date #394

Closed joshuaulrich closed 11 months ago

joshuaulrich commented 11 months ago

From StackOverflow: When I use getSymbol() with periodicity = "weekly", the date are incorrect

library(quantmod)
hsbc <- getSymbols("0011.HK", periodicity = "weekly", auto.assign = FALSE)
head(.indexwday(hsbc))  # Sunday
## [1] 0 0 0 0 0 0
packageVersion("quantmod")
## [1] '0.4.24'