Sébastien Dubois3k downloadsUpdate front matter to include creation and last update times
Automatically update front matter to include creation and last update times.
This Obsidian plugin keeps the created and updated front-matter properties of your notes in sync with the file's actual creation (ctime) and modification (mtime) timestamps. Once installed and enabled, it runs in the background — no commands to click, no manual housekeeping.
This plugin is a simplified reimplementation of the update-time-on-edit plugin. It was originally created to work around the fact that the original plugin did not integrate well with Obsidian Publish (see beaussan/update-time-on-edit-obsidian#75).
ctime and mtime.created is never overwritten; updated is debounced (MINUTES_BETWEEN_SAVES = 1 minute) to avoid fighting active edits.created, updated).Canvas.md and non-Markdown files are skipped.You can also browse the catalog on the Obsidian Community website.
If the plugin isn't listed in the community catalog yet (or you want a specific version):
main.js, manifest.json, and styles.css from the latest release.<Vault>/.obsidian/plugins/update-time/.BRAT (Beta Reviewers Auto-update Tool) installs plugins straight from a GitHub repo and keeps them updated automatically. Use this if you want the latest commits — things might break.
https://github.com/dsebastien/obsidian-update-time.Open Settings → Community plugins → Update Time to:
created, updated).Full settings reference: docs/configuration.md. User guide: docs/.
Important: this plugin modifies files in your vault. Back up your vault before enabling it.
vault.on('modify'). For each modified file, the plugin reads the file's content once (to skip empty notes and Excalidraw files)..md files: created (when missing) and updated (debounced, every minute at most). No other file content is touched.modify events.fetch, no analytics, no remote services. The Buy Me a Coffee badge image in the settings tab is bundled with the plugin and rendered locally.The plugin reacts to all file modifications — including writes made by sync tools (Obsidian Sync, Syncthing, etc.). If Obsidian is open on two devices at the same time, each device can trigger front-matter updates in response to the other's syncs, producing conflict files.
Mitigations: only leave Obsidian running on one device at a time, or enable the plugin on a single device.
Contributions are welcome. See CONTRIBUTING.md.
MIT.
To stay up to date about this plugin, Obsidian in general, personal knowledge management, and note-taking, subscribe to my newsletter. The best way to support my work is to become a paid subscriber, or to buy me a coffee at https://www.buymeacoffee.com/dsebastien ❤️.