obsidianmd / obsidian-clipper

Highlight and capture the web in your favorite browser. The official Web Clipper extension for Obsidian.
https://obsidian.md/clipper
MIT License
1.07k stars 56 forks source link

BUG: {{date}} and {{time}} variables both indicate time #113

Open humer-me opened 4 weeks ago

humer-me commented 4 weeks ago

Version (please complete the following information):

Describe the bug Both the {{date}} and {{time}} variables included in the extension indicate date + time.

To reproduce: Open any webpage, click on extension icon, and select "Show page variables": image

This behavior persists when using the {{date}} variable as part of a template.

Expected behavior This seems to be correct behavior for the {{time}} variable. The {{date}} variable should strip the time.

kepano commented 4 weeks ago

This is a side effect of #44. I'll fix it, but in the meantime you can use the date filter, e.g. {{date|date:"YYYY-MM-DD"}}