summaryrefslogtreecommitdiff
path: root/times.h
diff options
context:
space:
mode:
Diffstat (limited to 'times.h')
-rw-r--r--times.h5
1 files changed, 2 insertions, 3 deletions
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;