[Blotter-commits] r1006 - pkg/FinancialInstrument/inst/parser

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Apr 24 02:26:23 CEST 2012


Author: gsee
Date: 2012-04-24 02:26:23 +0200 (Tue, 24 Apr 2012)
New Revision: 1006

Modified:
   pkg/FinancialInstrument/inst/parser/download.TrueFX.R
Log:
 hardcode tzone=GMT when creating xts from TrueFX data

Modified: pkg/FinancialInstrument/inst/parser/download.TrueFX.R
===================================================================
--- pkg/FinancialInstrument/inst/parser/download.TrueFX.R	2012-04-18 12:03:55 UTC (rev 1005)
+++ pkg/FinancialInstrument/inst/parser/download.TrueFX.R	2012-04-24 00:26:23 UTC (rev 1006)
@@ -107,7 +107,7 @@
   id <- sub("/", "", fr[1, 1])
   cat("making index for ", id, "\n")
   idx <- as.POSIXct(fr[, 2], format="%Y%m%d %H:%M:%OS", tz="GMT")
-  obj <- xts(fr[, 3:4], idx)
+  obj <- xts(fr[, 3:4], idx, tzone="GMT")
   #colnames(obj) <- paste(id, c("Bid.Price", "Ask.Price"), sep=".")
   colnames(obj) <- c("Bid.Price", "Ask.Price")
   tmpenv <- new.env()



More information about the Blotter-commits mailing list