summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-18 06:45:38 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-18 06:45:38 +0000
commit7a90e3703cc89cfff95ef58d7647402a5edad3e3 (patch)
tree08b1bce4070662bbe34a266b0b93de1028aff6fa /chrome
parent899d16b3070a5ec078576998b9d49e9fbcc1ca3f (diff)
downloadchromium_src-7a90e3703cc89cfff95ef58d7647402a5edad3e3.zip
chromium_src-7a90e3703cc89cfff95ef58d7647402a5edad3e3.tar.gz
chromium_src-7a90e3703cc89cfff95ef58d7647402a5edad3e3.tar.bz2
Add GMT restriction to buildtime calculation
Make sure the buildtime is interpretted the same in all time zones. r=dpranke Review URL: http://codereview.chromium.org/546067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36488 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/metrics/metrics_log.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/metrics/metrics_log.cc b/chrome/browser/metrics/metrics_log.cc
index 2c7c617..4786923 100644
--- a/chrome/browser/metrics/metrics_log.cc
+++ b/chrome/browser/metrics/metrics_log.cc
@@ -716,7 +716,7 @@ void MetricsLog::RecordHistogramDelta(const Histogram& histogram,
static int64 GetBuildTime() {
Time parsed_time;
- const char* kDateTime = __DATE__ " " __TIME__;
+ const char* kDateTime = __DATE__ " " __TIME__ " GMT";
bool result = Time::FromString(ASCIIToWide(kDateTime).c_str(), &parsed_time);
DCHECK(result);
return static_cast<int64>(parsed_time.ToTimeT());