Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
humer-me opened this issue Oct 30, 2024 · 1 comment
Open

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

humer-me opened this issue Oct 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@humer-me
Copy link

Version (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Web Clipper version: 0.9.4
  • Obsidian version: 1.7.4

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
Copy link
Collaborator

kepano commented Oct 30, 2024

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"}}

@kepano kepano added the bug Something isn't working label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants