From 043147bd2b71a2d39e14d13ad7319c30b53478ee Mon Sep 17 00:00:00 2001 From: Vitalie Spinu Date: Fri, 26 Apr 2013 14:27:16 +0200 Subject: [PATCH] fix #177 (parse_date_time fails with factors) --- R/parse.r | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/parse.r b/R/parse.r index b83bcc38..155155c3 100644 --- a/R/parse.r +++ b/R/parse.r @@ -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)