obsidian-linter: Bug: Created date gets updated to a different timezone
- I have verified that I am on the latest version of the Linter
Describe the Bug
This is the diff I see in git after linting a file:
-created: 2024-04-03T15:23:19+01:00
-updated: 2024-04-03T15:26:57+01:00
+created: 2024-04-03T16:23:19+02:00
+updated: 2024-04-24T07:43:39+02:00
How to Reproduce
Steps to reproduce the behavior:
- Enable the option “Date Created” and “Force Date Created Key Value Retention”
- Create a file, save it
- Wait for DST to roll around (or change your system timezone)
- Lint file again
Expected Behavior
I expect the value in created to remain the same when I have the value retention option set.
Device
- Desktop
- Mobile
About this issue
- Original URL
- State: closed
- Created 2 months ago
- Comments: 19
I am glad to hear that. I will have to see about reproducing this at some point.
I think this would be the approach to take. I would need to double check a few things in the code, but this seems more reasonable and lines up more with what I was thinking when I saw this logic here.