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

{{date}} gets incorrectly applied when creating note from calendar view #376

Open
jobox05 opened this issue Oct 16, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@jobox05
Copy link

jobox05 commented Oct 16, 2024

The Problem

When creating a daily note from a template by clicking the date on the calendar, any {{date}} field gets incorrectly set to the date of the note rather than the current date.

For example, if I create the daily note for 2024-10-20 (the 20th of October) on 2024-10-16 (the 16th of October), any {{date}} specified in the template gets set to 2024-10-20 rather than the current date 2024-10-16.

Steps to reproduce

  1. Create a daily note template containing a {{date}} field
  2. Go to the calendar view in the sidebar and click a random uncreated note that isnt of the current date
  3. observe that {{date}} has been incorrectly set to the date of the note rather than the current date.

Expected behavior

When creating a note from the template through the calendar I expected the {{date}} to be replaced with the current date rather than the date of the note

Screenshots

Daily Note Template
image
Created Daily Note from the Issue (note that the {{time}} property gets appliead correctly):
image

OS

Persists on multiple devices and operating systems: Win11; Android;

Obsidian Version

Version 1.6.7

Theme :

Issue persists on both default theme and minimal.

@jobox05 jobox05 added the bug Something isn't working label Oct 16, 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

1 participant