[Lldb-commits] [lldb] r219841 - The NSDate formatter should use GMT instead of the local timezone. Fixes rdar://13416848
Enrico Granata
egranata at apple.com
Wed Oct 15 13:18:59 PDT 2014
Author: enrico
Date: Wed Oct 15 15:18:58 2014
New Revision: 219841
URL: http://llvm.org/viewvc/llvm-project?rev=219841&view=rev
Log:
The NSDate formatter should use GMT instead of the local timezone. Fixes rdar://13416848
Modified:
lldb/trunk/source/DataFormatters/Cocoa.cpp
Modified: lldb/trunk/source/DataFormatters/Cocoa.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/DataFormatters/Cocoa.cpp?rev=219841&r1=219840&r2=219841&view=diff
==============================================================================
--- lldb/trunk/source/DataFormatters/Cocoa.cpp (original)
+++ lldb/trunk/source/DataFormatters/Cocoa.cpp Wed Oct 15 15:18:58 2014
@@ -552,7 +552,7 @@ lldb_private::formatters::NSDateSummaryP
// 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);
More information about the lldb-commits
mailing list