The NSDate formatter should use GMT instead of the local timezone. Fixes rdar://13416848

llvm-svn: 219841
This commit is contained in:
Enrico Granata
2014-10-15 20:18:58 +00:00
parent 8d043e82ef
commit db2ecad3cd

View File

@@ -552,7 +552,7 @@ lldb_private::formatters::NSDateSummaryProvider (ValueObject& valobj, Stream& st
// vendor decides to get creative
time_t epoch = GetOSXEpoch();
epoch = epoch + (time_t)date_value;
tm *tm_date = localtime(&epoch);
tm *tm_date = gmtime(&epoch);
if (!tm_date)
return false;
std::string buffer(1024,0);