Skip to content

Commit

Permalink
Should fix timezone issue for the R version of the as.Date test that …
Browse files Browse the repository at this point in the history
…exists on more finicky R/OS combinations.
  • Loading branch information
bghill committed Oct 22, 2014
1 parent 43f653e commit 402236b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions R/tests/testdir_jira/runit_hex_1841_asdate_datemanipulation.R
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ datetest <- function(conn){
c1 = c("Fri Jan 10 00:00:00 1969 -0800", "Tue Jan 10 04:00:00 2068 -0800", "Mon Dec 30 01:00:00 2002 -0800", "Wed Jan 1 12:00:00 2003 -0800")
c1dt = strptime(c1, formats[1], tz="America/Los_Angeles")
c2 = strftime(c1dt, formats[2], tz="America/Los_Angeles")
c3 = strftime(c1dt, formats[3])
c4 = strftime(c1dt, formats[4])
c5 = strftime(c1dt, formats[5])
c6 = strftime(c1dt, formats[6])
c7 = strftime(c1dt, formats[7])
c8 = strftime(c1dt, formats[8])
c9 = strftime(c1dt, formats[9])
c10 = strftime(c1dt, formats[10])
c11 = strftime(c1dt, formats[11])
c3 = strftime(c1dt, formats[3], tz="America/Los_Angeles")
c4 = strftime(c1dt, formats[4], tz="America/Los_Angeles")
c5 = strftime(c1dt, formats[5], tz="America/Los_Angeles")
c6 = strftime(c1dt, formats[6], tz="America/Los_Angeles")
c7 = strftime(c1dt, formats[7], tz="America/Los_Angeles")
c8 = strftime(c1dt, formats[8], tz="America/Los_Angeles")
c9 = strftime(c1dt, formats[9], tz="America/Los_Angeles")
c10 = strftime(c1dt, formats[10], tz="America/Los_Angeles")
c11 = strftime(c1dt, formats[11], tz="America/Los_Angeles")

ldf = data.frame(c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11)
hdf = as.h2o(conn, ldf, "hdf", TRUE)
Expand Down

0 comments on commit 402236b

Please sign in to comment.