StatisticalServicesCentre / ClimateObject

This R code
GNU General Public License v3.0
0 stars 7 forks source link

Bug in as.POSIXct #28

Open rposn opened 9 years ago

rposn commented 9 years ago

Dear All, I found a strange behaviour of "as.POSIXct", since it returned NA values for a specific date/times of my dataset ("2009-03-29 02:00:00"; "2010-03-28 02:00:00"; "2011-03-27 02:00:00"; "2012-03-25 02:00:00"; "2013-03-31 02:00:00"; "2014-03-30 02:00:00"). It seems to be an issue when no time zone is given (see https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15649).

Therefore I have included a new input called "time.zone" to the method: "date_col_check" at the "climate_date_refclass.R" file. The corresponding commit is: 16e601cf7c00dff4490dc7b4d91f56ad80a8f54e

The user can always specify their desired time.zone. If not, UTC will be used as default. I hope that this solves the issue...

Best regards