Skip to content

FileSystem Created Date not Updating Under Certain Circumstances #135

@elzik

Description

@elzik

With config setup like this:

{
  "WatcherOptions": {
    "WatchedDirectoryPaths": ["C:/Users/<user.name>/Obsidian"]
  },
  "FileSystemOptions": {
    "FilenamePattern": "*.md"
  },
  "FrontMatterOptions": {
    "TimeZoneId": ""
  },
  "Serilog": {
    "Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File" ],
    "MinimumLevel": {
      "Default": "Information",
      "Override": {
        "Polly": "Error"
      }
    },
    "WriteTo": [
      { "Name": "Console" },
      {
        "Name": "File",
        "Args": {
          "path": "C:/ProgramData/Elzik/fmsync/Elzik.FmSync.Worker.log",
          "rollingInterval": "Day",
          "retainedFileCountLimit": "7"
        }
      }
    ]
  }
}

I find that when I set a date to before the year 2000 although I see a message like this:

2025-04-25 10:05:48.290 +01:00 [INF] C:/Users/<user.name>/Obsidian\<file.name>.md file created date updated to match that of its Front Matter.

The created date is blank as the OD sees it. dates after the year 2000 seem to work fine. Strangely, if I then change the logging level to:

 "Serilog": {
    "Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File" ],
    "MinimumLevel": {
      "Default": "Debug",
      "Override": {
        "Polly": "Warning"
      }
    }

...the date gets set just fine for dates prior to the year 2000.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions