Open atagulalan opened 1 year ago
MetadataService.ts has additionalMetadataBeforeArchiving object, but it is overridden by the rule parameter. These are the lines affecting:
https://github.com/ivan-lednev/obsidian-task-archiver/blob/a8146552ebdf897d115e1d8b1b95af89fdf3184b/src/services/MetadataService.ts#L17-L20
And as you can see from this image, dateFormat is overridden by default config.
Just by swapping the order, dateFormat would be gotten from the right field.
Steps to Reproduce:
Expected Behavior: Respect configured date format variable when adding metadata.
Actual Behavior: It gives output with date format "YYYY-MM-DD".
Additional Information: Archiver version is 0.26.1
MetadataService.ts has additionalMetadataBeforeArchiving object, but it is overridden by the rule parameter. These are the lines affecting:
https://github.com/ivan-lednev/obsidian-task-archiver/blob/a8146552ebdf897d115e1d8b1b95af89fdf3184b/src/services/MetadataService.ts#L17-L20
And as you can see from this image, dateFormat is overridden by default config.
Just by swapping the order, dateFormat would be gotten from the right field.
Steps to Reproduce:
Expected Behavior: Respect configured date format variable when adding metadata.
Actual Behavior: It gives output with date format "YYYY-MM-DD".
Additional Information: Archiver version is 0.26.1