Fix time export in repository xlsx exporter [SCI-10856]

This commit is contained in:
Martin Artnik 2024-07-09 15:54:06 +02:00
parent 84f47db907
commit 6ad15211ac

View file

@ -54,7 +54,7 @@ module RepositoryXlsxExport
row_data << if cell row_data << if cell
if cell.value_type == 'RepositoryAssetValue' && handle_file_name_func if cell.value_type == 'RepositoryAssetValue' && handle_file_name_func
handle_file_name_func.call(cell.value.asset) handle_file_name_func.call(cell.value.asset)
elsif cell.value_type == 'RepositoryDateTimeValueBase' elsif cell.value.is_a?(RepositoryDateTimeValue) || cell.value.is_a?(RepositoryDateValue)
cell.value.data cell.value.data
else else
cell.value.export_formatted cell.value.export_formatted