Update fdbclient/BackupAgentBase.actor.cpp

Co-Authored-By: satherton <stevea@apple.com>
This commit is contained in:
A.J. Beamon 2019-03-22 11:02:38 -07:00 committed by GitHub
parent cabe7ca844
commit 76e6a3f56d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ int64_t BackupAgentBase::parseTime(std::string timestamp) {
// TODO: Use std::get_time implementation for all platforms once supported // TODO: Use std::get_time implementation for all platforms once supported
// It would be nice to read the timezone using %z, but it seems not all get_time() // It would be nice to read the timezone using %z, but it seems not all get_time()
// or strptime() implementations handle it correctly in all environments so we // or strptime() implementations handle it correctly in all environments so we
// will read the date and time independing of timezone at first and then adjust it. // will read the date and time independent of timezone at first and then adjust it.
#ifdef _WIN32 #ifdef _WIN32
std::istringstream s(timeOnly); std::istringstream s(timeOnly);
s.imbue(std::locale(setlocale(LC_TIME, nullptr))); s.imbue(std::locale(setlocale(LC_TIME, nullptr)));