X-Git-Url: https://git.auder.net/doc/html/img/rock_paper_scissors_lizard_spock.gif?a=blobdiff_plain;f=pkg%2FR%2FgetData.R;h=e13cf86cb8ae578e4bad37b65a9e5ca2ccdc40a0;hb=6deb700590d0000c4f8cce050990394f381ddecf;hp=9ed021714c45175f40f12fae62300e06e3519abe;hpb=7f90df63d1ac659d450a180b50b994a76d5fc7b9;p=talweg.git
diff --git a/pkg/R/getData.R b/pkg/R/getData.R
index 9ed0217..e13cf86 100644
--- a/pkg/R/getData.R
+++ b/pkg/R/getData.R
@@ -76,7 +76,7 @@ getData = function(ts_data, exo_data, input_tz="GMT", date_format="%d/%m/%Y %H:%
serie = c(serie, ts_df[line,2])
line = line + 1
};
- if (line >= nb_lines + 1 || as.POSIXlt(ts_df[line-1,1])$hour == predict_at)
+ if (line >= nb_lines + 1 || as.POSIXlt(ts_df[line-1,1],tz=working_tz)$hour == predict_at)
break
}