summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-12 15:14:15 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-12 15:14:15 +0100
commit36439e0cb69d7d3a3c3944367fa649b77776e0ba (patch)
tree3fb9133ebc0c7260483b8fa3560f23205e5dc7d8 /src
parent75356e094480bd7f96263a967a8cf165f4a2f818 (diff)
Remove erroneous local time from generated ContentVersionId.
Diffstat (limited to 'src')
-rw-r--r--src/cpl.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpl.cc b/src/cpl.cc
index 78f49885..5f3d0291 100644
--- a/src/cpl.cc
+++ b/src/cpl.cc
@@ -51,11 +51,11 @@ CPL::CPL (string annotation_text, ContentKind content_kind)
, _content_kind (content_kind)
, _content_version_id ("urn:uuid:" + make_uuid ())
{
- /* default _content_version_id to and _content_version_label to
+ /* default _content_version_id to a random ID and _content_version_label to
a random ID and the current time.
*/
- _content_version_id = "urn:uuid:" + make_uuid() + LocalTime().as_string ();
- _content_version_label_text = _content_version_id;
+ _content_version_id = "urn:uuid:" + make_uuid();
+ _content_version_label_text = _content_version_id + LocalTime().as_string ();
}
/** Construct a CPL object from a XML file */