Repository: mesos
Updated Branches:
  refs/heads/master a4f4eff1f -> 17eb5d37b


Fixed the format of DateUtils::currentDate().

Review: https://reviews.apache.org/r/19538


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/17eb5d37
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/17eb5d37
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/17eb5d37

Branch: refs/heads/master
Commit: 17eb5d37ba1a54b967235c3e0b04d95c8a6cbc0d
Parents: a4f4eff
Author: Vinod Kone <[email protected]>
Authored: Fri Mar 21 10:31:23 2014 -0700
Committer: Vinod Kone <[email protected]>
Committed: Fri Mar 21 10:34:26 2014 -0700

----------------------------------------------------------------------
 src/common/date_utils.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/17eb5d37/src/common/date_utils.cpp
----------------------------------------------------------------------
diff --git a/src/common/date_utils.cpp b/src/common/date_utils.cpp
index 22c7dac..1c7565d 100644
--- a/src/common/date_utils.cpp
+++ b/src/common/date_utils.cpp
@@ -30,7 +30,7 @@ bool DateUtils::useMockDate = false;
 string DateUtils::mockDate = "";
 
 
-// Get the current date in the format used for Mesos IDs (YYYYMMDDhhmmss).
+// Get the current date in the format used for Mesos IDs (YYYYMMDD-hhmmss).
 string DateUtils::currentDate()
 {
   if (useMockDate) {
@@ -41,7 +41,7 @@ string DateUtils::currentDate()
     time(&rawtime);
     timeinfo = localtime(&rawtime);
     char date[32];
-    strftime(date, sizeof(date), "%Y-%m-%d-%H:%M:%S", timeinfo);
+    strftime(date, sizeof(date), "%Y%m%d-%H%M%S", timeinfo);
     return date;
   }
 }

Reply via email to