Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert index to Date using index timezone
Both the indexClass<-.xts() call and the indexTZ<-.xts() calls set the index timezone to UTC, but does not change the actual index values. The call to 'index(x) <- index(x)' updates the values, but the dates will calculated as if the local time is UTC, not the local time of the user-specified xts object. This can cause the output to be different than if the local timezone is used. Convert the index to Date using the local timezone before updating the index timezone. Fixes #53, #277.
- Loading branch information