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

invalid reference date format, try specifying one with reference format #1382

Closed
AppleElephants opened this issue May 21, 2024 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@AppleElephants
Copy link

I have used templater for 2 years

but suddenly it has something wrong

20240522_020926

I got error like that

and when I insert templater, it dosent work

like this

20240522_011739

@AppleElephants AppleElephants added the bug Something isn't working label May 21, 2024
@Zachatoo
Copy link
Collaborator

Zachatoo commented May 21, 2024

  1. Can you please provide your entire template as plain text, not as a screenshot? It makes it way easier to test.
  2. Do you have any user scripts? If so, try disabling user scripts, and if it works, then there's a syntax error in one of your user scripts, not your template.
  3. Please share your Obsidian and Templater versions, there's a reason they're in the bug issue template.

@Zachatoo Zachatoo added the awaiting response More information has been requested, waiting to hear from the submitter label May 21, 2024
@AppleElephants
Copy link
Author

  1. Can you please provide your entire template as plain text, not as a screenshot? It makes it way easier to test.
  2. Do you have any user scripts? If so, try disabling user scripts, and if it works, then there's a syntax error in one of your user scripts, not your template.
  3. Please share your Obsidian and Templater versions, there's a reason they're in the bug issue template.

Thanky for replying me!

template I used is like below

date: <% tp.file.creation_date() %>
Progress:
Target: 100
Deadline: -2
type:
tags:
aliases:

<% moment(tp.file.title,'YYYY-MM-DD').format("dddd, MMMM DD, YYYY") %>

<< [[<% fileDate = moment(tp.file.title, 'YYYY-MM-DD-dddd').subtract(1, 'd').format('YYYY-MM-DD-dddd') %>|Yesterday]] | [[<% fileDate = moment(tp.file.title, 'YYYY-MM-DD-dddd').add(1, 'd').format('YYYY-MM-DD-dddd') %>|Tomorrow]] >>

I dont have user scripts.

and Obsidian version = V1.5.12
Templater version = 2.3.2

I upload my daily template
Daily Note Template (new).md

@Zachatoo
Copy link
Collaborator

Strange, your template works fine for me. My test note is titled 2024-05-21 or 2024-05-21-Tuesday, following the format of YYYY-MM-DD or YYYY-MM-DD-dddd, as defined in your template.

Can you try reproducing in the sandbox vault with just Templater installed and this template, in a file matching your date format?

@AppleElephants
Copy link
Author

Strange, your template works fine for me. My test note is titled 2024-05-21 or 2024-05-21-Tuesday, following the format of YYYY-MM-DD or YYYY-MM-DD-dddd, as defined in your template.

Can you try reproducing in the sandbox vault with just Templater installed and this template, in a file matching your date format?

oh...I got the solution..! it is because language (I dont know why?) I am from Korea but I usually use English in obsidian
I just changed English into Korean and the template works..?

Anyway
really Thank you for helping me
it really helps I tried everything I could but it didnt work and I was about to give up
Thank you!

@Zachatoo Zachatoo removed the awaiting response More information has been requested, waiting to hear from the submitter label May 21, 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