diff --git a/lib/glossarist/concept_manager.rb b/lib/glossarist/concept_manager.rb index 3203083..75096aa 100644 --- a/lib/glossarist/concept_manager.rb +++ b/lib/glossarist/concept_manager.rb @@ -33,7 +33,7 @@ def save_to_files(managed_concepts) end def load_concept_from_file(filename) - concept_hash = Psych.safe_load(File.read(filename), permitted_classes: [Date]) + concept_hash = Psych.safe_load(File.read(filename), permitted_classes: [Date, Time]) concept_hash["uuid"] = concept_hash["id"] || File.basename(filename, ".*") concept = ManagedConcept.new(concept_hash) @@ -50,7 +50,7 @@ def load_concept_from_file(filename) def load_localized_concept(id) concept_hash = Psych.safe_load( File.read(localized_concept_path(id)), - permitted_classes: [Date], + permitted_classes: [Date, Time], ) concept_hash["uuid"] = id diff --git a/spec/fixtures/relaton_cache/iso/iso_ts_14812_2022.xml b/spec/fixtures/relaton_cache/iso/iso_ts_14812_2022.xml index d7133cd..a24c432 100644 --- a/spec/fixtures/relaton_cache/iso/iso_ts_14812_2022.xml +++ b/spec/fixtures/relaton_cache/iso/iso_ts_14812_2022.xml @@ -1,5 +1,5 @@ - - 2023-11-28 + + 2023-12-12 Intelligent transport systems Vocabulary Intelligent transport systems - Vocabulary diff --git a/spec/fixtures/relaton_cache/iso/version b/spec/fixtures/relaton_cache/iso/version index 9045d30..b3b95af 100644 --- a/spec/fixtures/relaton_cache/iso/version +++ b/spec/fixtures/relaton_cache/iso/version @@ -1 +1 @@ -4ff4ff47a5e6abfaa3277f5a26f1707f \ No newline at end of file +a03026b6e0501d55c0b281625ab5eb34 \ No newline at end of file