j-palindrome / obsidian-time-ruler

A drag-and-drop time ruler combining the best of a task list and a calendar view (integrates with Tasks, Full Calendar, and Dataview).
MIT License
214 stars 7 forks source link

Wrong date #85

Closed Ekb18 closed 3 months ago

Ekb18 commented 9 months ago

Describe the bug For some reason, Time Ruler is registering the wrong date. It's registering today's date as yesterday's date, while registering tomorrow's date as today's date.

To Reproduce Steps to reproduce the behavior:

  1. Create test vault
  2. Install Dataview and Time-ruler
  3. Create Today's Daily Note and add a planning,
  4. Open Time-ruler
  5. See error

Expected behavior The dates in time-ruler should be correct.

Screenshots Screenshot 2023-11-28 192147

Obsidian Version:

j-palindrome commented 9 months ago

Thanks, I'll try to fix this as soon as I get the chance. Added to roadmap — for now, check or change the date format / folder you are using for daily notes because TR parses the dates based on those global Obsidian settings.

jckoester commented 8 months ago

Having the same problem using the most standard date format YYYY-MM-DD in all option fields. Seems like in genral the daily notes are parsed incorrectly...

j-palindrome commented 8 months ago

Hm, I can't reproduce this error. Can you post a screenshot? Are you using the original daily-notes plugin or a different plugin like Periodic Notes?

jckoester commented 8 months ago

In my test vault I was using the original daily-notes, in my main vault I prefer periodic notes, but that does not seem to be the problem.

I was wondering if localization might be the problem, as I'm using obsidian in German. Changing the language alone doesn't change anything though. Do you know any other settings I might try?

Screenshots: Screenshot 2024-01-04 211707 Screenshot 2024-01-04 211724 Screenshot 2024-01-04 211805 Screenshot 2024-01-04 211825 Screenshot 2024-01-04 211309 Screenshot 2024-01-04 211502 Screenshot 2024-01-04 211512

j-palindrome commented 8 months ago

There's a new version with a "Now" mode—not sure if that will fix it but try updating to see if it solves the issue

j-palindrome commented 8 months ago

Also is this only with daily notes or with explicitly scheduled tasks as well?

jckoester commented 8 months ago

The "now" mode shows both, but they don't show up in the days anymore. If I put a date to the planner entry explicitly (by inline property) evrything works as expected. Screenshot 2024-01-04 212940

j-palindrome commented 8 months ago

I can't reproduce it in my test vault. Here are my settings for Daily Notes.

Screenshot 2024-01-04 at 12 56 27 PM Screenshot 2024-01-04 at 12 57 51 PM
j-palindrome commented 8 months ago

Ahh, the localization is probably the issue—moment.js is the internal Date library which might adapt to locale.

j-palindrome commented 3 months ago

I haven't been able to reproduce—id there's anything else you can provide let me know.