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

Links based on dates do not refresh #2228

Open
chmac opened this issue Feb 8, 2024 · 3 comments
Open

Links based on dates do not refresh #2228

chmac opened this issue Feb 8, 2024 · 3 comments
Labels
bug Something isn't working.

Comments

@chmac
Copy link

chmac commented Feb 8, 2024

What happened?

I have the following to show a link to today's note:

Today: `=link(dateformat(date(today), "yyyy-MM-dd"))` (yesterday `=link(dateformat(date(yesterday), "yyyy-MM-dd"))`)

When the note is open for more than a day, these links don't update to the current date.

  • Refresh interval is set to 2500
  • Force refresh command doesn't help

DQL

No response

JS

No response

Dataview Version

0.5.64

Obsidian Version

1.5.3

OS

MacOS

@chmac chmac added the bug Something isn't working. label Feb 8, 2024
@chmac
Copy link
Author

chmac commented Feb 8, 2024

Apologies if this is the intended behaviour and I've misunderstood what a refresh should do.

@holroy
Copy link
Contributor

holroy commented Feb 16, 2024

Sadly this is a common issue in some cases. It's not only related to dates changing, but the refresh fails in some cases in general, and you need to either re-open the note itself, change the query (could be as easy as adding/remove spaces), or triggering a rebuild of the current view.

@holroy
Copy link
Contributor

holroy commented Feb 16, 2024

See also #1752

holroy added a commit to holroy/obsidian-dataview that referenced this issue Feb 16, 2024
Adding a command which can circumvent the issues of blacksmithgu#1752, blacksmithgu#1759, blacksmithgu#2228 (and possibly blacksmithgu#1075). This command allows for a full re-run of any query on the active page.
blacksmithgu pushed a commit that referenced this issue Mar 17, 2024
* Add workaround to refresh issue of #1752

Adding a command which can circumvent the issues of #1752, #1759, #2228 (and possibly #1075). This command allows for a full re-run of any query on the active page.

* Forgot the check-format. again
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