Skip to content

Commit

Permalink
fix tidyverse#177 (parse_date_time fails with factors)
Browse files Browse the repository at this point in the history
  • Loading branch information
vspinu committed Apr 26, 2013
1 parent efdfb5d commit 043147b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/parse.r
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ parse_date_time <- function(x, orders, tz = "UTC", truncated = 0, quiet = FALSE,
Sys.setlocale("LC_TIME", locale)
on.exit(Sys.setlocale("LC_TIME", orig_locale))

x <- .num_to_date(x)
x <- as.character(.num_to_date(x))
if( truncated != 0 )
orders <- .add_truncated(orders, truncated)

Expand Down

0 comments on commit 043147b

Please sign in to comment.