diff --git a/es-core/src/components/DateTimeComponent.cpp b/es-core/src/components/DateTimeComponent.cpp index e4f077c2a..87e78d0f1 100644 --- a/es-core/src/components/DateTimeComponent.cpp +++ b/es-core/src/components/DateTimeComponent.cpp @@ -117,9 +117,6 @@ void DateTimeComponent::applyTheme(const std::shared_ptr& theme, if (!elem) return; - if (elem->has("displayRelative")) - setDisplayRelative(elem->get("displayRelative")); - if (elem->has("format")) setFormat(elem->get("format")); @@ -178,6 +175,12 @@ void DateTimeComponent::applyTheme(const std::shared_ptr& theme, if (properties & METADATA && elem->has("metadata")) setMetadataField(elem->get("metadata")); + if (mMetadataField == "md_lastplayed") + setDisplayRelative(true); + + if (elem->has("displayRelative")) + setDisplayRelative(elem->get("displayRelative")); + if (properties & LETTER_CASE && elem->has("letterCase")) { std::string letterCase {elem->get("letterCase")}; if (letterCase == "uppercase") {