SyncThing causing cday irregularities?

What I’m trying to do

I have a bit of Dataview code in my daily note template that tracks notes created on that day:

>```dataview
>LIST 
>WHERE file.cday = this.file.day 
>AND file.path != this.file.path
>SORT file.name asc
>```

I have recently started syncing my vault using SyncThing, however, and since that time the results include notes both created and modified on that day.

Things I have tried

I have looked through both Obsidian help files and Dataview documentation, and I have noted that SyncThing is altering system-level file creation dates as it syncs. However, the file properties maintain the correct creation and modification dates.

Does anyone using SyncThing for vault syncing have experience with this kind of oddity? I imagine I could change the code such that it draws on file properties rather than system metadata, but I’m wondering if there’s something at the sync level I should fix first.

This comment in an issue on the SyncThing GitHub repo could give you an answer :blush: : https://github.com/syncthing/syncthing/issues/9191#issuecomment-1793788931

And yes, cday, ctime, mday and mtime in Dataview, AFAIK at least/iirc (:sweat_smile:), all depends on the file info from the file system :blush: .

Ahhhhh, thank you. I should have looked there! Okay, this may force me to move back to native Obsidian syncing. (I shifted to SyncThing because I was getting weird bits of corruption in my recurring task list – but this is more fundamental and less easily remedied.) I appreciate the pointer!

1 Like

the tasks plugin creates a created date when you create a task (if you wish). you could use this and update your query or you can just create a created date bit of meta data yourself and have your query look for it. you can use templater to create a action for “new task” that prompts for the fields you use and automatically adds your created date to the task. or just use templater to insert the created data meat data and bind to a keystroke.

you might find more advice on the tasks thread off discord