summaryrefslogtreecommitdiff
path: root/src/mongo/util/time_support.h
diff options
context:
space:
mode:
authorShaun Verch <shaun.verch@mongodb.com>2014-05-13 17:01:04 -0400
committerShaun Verch <shaun.verch@mongodb.com>2014-05-16 14:58:18 -0400
commitbf5f075b3b73c242042be8fd2c0b9b60af5f0089 (patch)
treed29448d3df2762dfee77783386c8a8c564537a79 /src/mongo/util/time_support.h
parent50045df21469d45216c5fb8899d68818fcc7f38a (diff)
downloadmongo-bf5f075b3b73c242042be8fd2c0b9b60af5f0089.tar.gz
SERVER-13760 Do not call dateToISOString if date is not formatable
Diffstat (limited to 'src/mongo/util/time_support.h')
-rw-r--r--src/mongo/util/time_support.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/util/time_support.h b/src/mongo/util/time_support.h
index 61e6a1b02ff..9ddc39307d7 100644
--- a/src/mongo/util/time_support.h
+++ b/src/mongo/util/time_support.h
@@ -45,6 +45,8 @@ namespace mongo {
int64_t asInt64() const {
return static_cast<int64_t>(millis);
}
+
+ static const Date_t maxFormatableDate;
};
// uses ISO 8601 dates without trailing Z