mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
The NSDate formatter should use GMT instead of the local timezone. Fixes rdar://13416848
llvm-svn: 219841
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user