projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d043e8
)
The NSDate formatter should use GMT instead of the local timezone. Fixes rdar://13416848
author
Enrico Granata
<egranata@apple.com>
Wed, 15 Oct 2014 20:18:58 +0000
(20:18 +0000)
committer
Enrico Granata
<egranata@apple.com>
Wed, 15 Oct 2014 20:18:58 +0000
(20:18 +0000)
llvm-svn: 219841
lldb/source/DataFormatters/Cocoa.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/DataFormatters/Cocoa.cpp
b/lldb/source/DataFormatters/Cocoa.cpp
index
8e92de4
..
bb8dc53
100644
(file)
--- a/
lldb/source/DataFormatters/Cocoa.cpp
+++ b/
lldb/source/DataFormatters/Cocoa.cpp
@@
-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 =
local
time(&epoch);
+ tm *tm_date =
gm
time(&epoch);
if (!tm_date)
return false;
std::string buffer(1024,0);