From 36439e0cb69d7d3a3c3944367fa649b77776e0ba Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 12 Sep 2015 15:14:15 +0100 Subject: Remove erroneous local time from generated ContentVersionId. --- src/cpl.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cpl.cc') 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 */ -- cgit v1.2.3