aboutsummaryrefslogtreecommitdiff
path: root/src/processor/minidump.cc
diff options
context:
space:
mode:
authormmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2006-09-07 15:17:40 +0000
committermmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2006-09-07 15:17:40 +0000
commit8d2f465c8a77a94cb9fbe569e7a69f646df97b10 (patch)
treec13f3b1476b41f02c358b7cd9ccabca297d5cca0 /src/processor/minidump.cc
parentConform to style guidelines: methods overriding virtual methods should also b... (diff)
downloadbreakpad-8d2f465c8a77a94cb9fbe569e7a69f646df97b10.tar.xz
minidump_dump test is timezone-dependent (#15). r=bryner
- Use gmtime (UTC) instead of localtime for human-readable presentation of (MDRawHeader).time_date_stamp. git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@15 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/processor/minidump.cc')
-rw-r--r--src/processor/minidump.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/processor/minidump.cc b/src/processor/minidump.cc
index 46aa7c43..2dc9dda0 100644
--- a/src/processor/minidump.cc
+++ b/src/processor/minidump.cc
@@ -1860,7 +1860,7 @@ void Minidump::Print() {
printf(" stream_count = %d\n", header_.stream_count);
printf(" stream_directory_rva = 0x%x\n", header_.stream_directory_rva);
printf(" checksum = 0x%x\n", header_.checksum);
- struct tm* timestruct = localtime((time_t*)&header_.time_date_stamp);
+ struct tm* timestruct = gmtime((time_t*)&header_.time_date_stamp);
char timestr[20];
strftime(timestr, 20, "%Y-%m-%d %H:%M:%S", timestruct);
printf(" time_date_stamp = 0x%x %s\n", header_.time_date_stamp,