fixed a POSIXct error that produced NaNs for some time series with missing data.
fixed an error that produced NaNs for some time series with missing data.