summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/datetime/date_time_support.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/datetime/date_time_support.cpp')
-rw-r--r--src/mongo/db/query/datetime/date_time_support.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/query/datetime/date_time_support.cpp b/src/mongo/db/query/datetime/date_time_support.cpp
index 76002d0d87d..766c6fbbe9c 100644
--- a/src/mongo/db/query/datetime/date_time_support.cpp
+++ b/src/mongo/db/query/datetime/date_time_support.cpp
@@ -185,7 +185,8 @@ void TimeZoneDatabase::loadTimeZoneInfo(
<< timelib_get_error_message(errorCode)});
}
- invariant(errorCode == TIMELIB_ERROR_NO_ERROR);
+ invariant(errorCode == TIMELIB_ERROR_NO_ERROR ||
+ errorCode == TIMELIB_ERROR_EMPTY_POSIX_STRING);
_timeZones[entry.id] = TimeZone{tzInfo};
}
}
@@ -194,7 +195,7 @@ TimeZone TimeZoneDatabase::utcZone() {
return TimeZone{nullptr};
}
-static timelib_tzinfo* timezonedatabase_gettzinfowrapper(char* tz_id,
+static timelib_tzinfo* timezonedatabase_gettzinfowrapper(const char* tz_id,
const _timelib_tzdb* db,
int* error) {
return nullptr;