Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3422)

Unified Diff: base/build_time.cc

Issue 1846713002: Improve the error message in BuildTime.InThePast to help figure out the problem. (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: With fix Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/build_time_unittest.cc » ('j') | base/build_time_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/build_time.cc
diff --git a/base/build_time.cc b/base/build_time.cc
index 6f496f2efd2a9c482151911d8ecad02873935ce3..cedc8a5eef9e641c94513fbff96a1c26b1c6fc91 100644
--- a/base/build_time.cc
+++ b/base/build_time.cc
@@ -15,6 +15,7 @@ namespace base {
Time GetBuildTime() {
Time integral_build_time;
// BUILD_DATE is exactly "Mmm DD YYYY".
+ // See //build/write_build_date_header.py.
const char kDateTime[] = BUILD_DATE " 05:00:00";
bool result = Time::FromUTCString(kDateTime, &integral_build_time);
DCHECK(result);
« no previous file with comments | « no previous file | base/build_time_unittest.cc » ('j') | base/build_time_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698