-
Notifications
You must be signed in to change notification settings - Fork 75
v0.2.54..v0.2.55 changeset AddAttributesVisitor.cpp
Garret Voltz edited this page Aug 14, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/AddAttributesVisitor.cpp b/hoot-core/src/main/cpp/hoot/core/visitors/AddAttributesVisitor.cpp
index 457c531..2dbfb31 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/AddAttributesVisitor.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/AddAttributesVisitor.cpp
@@ -22,7 +22,7 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
*/
#include "AddAttributesVisitor.h"
@@ -31,7 +31,7 @@
#include <hoot/core/util/ConfigOptions.h>
#include <hoot/core/util/Settings.h>
#include <hoot/core/elements/ElementAttributeType.h>
-#include <hoot/core/elements/OsmUtils.h>
+#include <hoot/core/util/DateTimeUtils.h>
namespace hoot
{
@@ -114,7 +114,7 @@ void AddAttributesVisitor::visit(const std::shared_ptr<Element>& e)
case ElementAttributeType::Timestamp:
if (!_addOnlyIfEmpty || e->getTimestamp() == ElementData::TIMESTAMP_EMPTY)
{
- e->setTimestamp(OsmUtils::fromTimeString(attributeValue));
+ e->setTimestamp(DateTimeUtils::fromTimeString(attributeValue));
LOG_TRACE("Added " << attrType.toString() << "=" << attributeValue);
_numAffected++;
}