The NSDate formatter should use GMT instead of the local timezone. Fixes rdar://13416848
authorEnrico Granata <egranata@apple.com>
Wed, 15 Oct 2014 20:18:58 +0000 (20:18 +0000)
committerEnrico Granata <egranata@apple.com>
Wed, 15 Oct 2014 20:18:58 +0000 (20:18 +0000)
llvm-svn: 219841

lldb/source/DataFormatters/Cocoa.cpp

index 8e92de4..bb8dc53 100644 (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);