From 6853db57e6fdb6fd95764be1f35af0006c9e2ef9 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 23 Apr 2007 04:42:44 +0000 Subject: All tests now working again. Reduced size of entity_t and transaction_t considerably. --- times.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'times.h') diff --git a/times.h b/times.h index 6e5dbd83..fab13474 100644 --- a/times.h +++ b/times.h @@ -83,11 +83,10 @@ inline moment_t ptime_from_local_time_string(const string& time_string) { } #endif -moment_t parse_datetime(std::istream& in); +moment_t parse_datetime(const char * str); inline moment_t parse_datetime(const string& str) { - std::istringstream instr(str); - return parse_datetime(instr); + return parse_datetime(str.c_str()); } extern ptime time_now; -- cgit v1.2.3