obsidian-dataview icon indicating copy to clipboard operation
obsidian-dataview copied to clipboard

Time Rendered Incorrectly in Reading View

Open eatgrass opened this issue 1 year ago • 3 comments
trafficstars

What happened?

https://github.com/blacksmithgu/obsidian-dataview/assets/2351076/4442ef43-77be-4d8c-aea6-b47215e806af

As shown in the video, the time in the sublist item of Task2 has been changed in reading view. I removed all plugins except dataview for verification.

It can be reproduced by enabling Inline Highlight in Reading View Option

documents markdown

## Task

- [ ] Task 1
    - [🍅:: 35m] (from:: 2023-11-24 13:00) - (to:: 2023-11-24 13:35)
    - [🍅:: 35m] (from:: 2023-11-24 16:10) - (to:: 2023-11-24 16:45)
- [ ] Task 2
    - [🍅:: 25m] (from:: 2023-11-24 14:00) - (to:: 2023-11-24 14:25)
    - [🍅:: 25m] (from:: 2023-11-24 15:00) - (to:: 2023-11-24 15:25)

rendered Task 1 🍅35 minutes 2023-11-24 13:00 - 2023-11-24 13:35 🍅35 minutes 2023-11-24 16:10 - 2023-11-24 16:45 Task 2 🍅25 minutes 2023-11-24 13:00 - 2023-11-24 13:35 🍅25 minutes 2023-11-24 16:10 - 2023-11-24 16:45

DQL

No response

JS

No response

Dataview Version

0.5.64

Obsidian Version

1.4.16

OS

MacOS

eatgrass avatar Nov 24 '23 15:11 eatgrass

I can verify that this is indeed happening in Reading view, but not in live preview. I extended the list somewhat, and it kept repeating itself through the next tasks, even with varying length of the subtasks. It's kind of strange though that the Tomato field at the start, is kept correct throughout the other tasks.

My test file:

- [ ] Task 1
    - [🍅:: 31m] (from:: 2023-11-24 11:01) - (to:: 2023-11-24 13:35)
    - [🍅:: 31m] (from:: 2023-11-24 11:11) - (to:: 2023-11-24 16:45)
- [ ] Task 2
    - [🍅:: 22m] (from:: 2023-11-24 12:02) - (to:: 2023-11-24 14:25)
    - [🍅:: 22m] (from:: 2023-11-24 11:02) - (to:: 2023-11-24 15:25)
- [ ] Task 3
    - [🍅:: 33m] (from:: 2023-11-24 13:13) - (to:: 2023-11-24 16:45)
- [ ] Task 4
    - [🍅:: 24m] (from:: 2023-11-24 14:04) - (to:: 2023-11-24 14:25)
    - [🍅:: 24m] (from:: 2023-11-24 14:04) - (to:: 2023-11-24 15:25)
   - [🍅:: 24m] (from:: 2023-11-24 14:04) - (to:: 2023-11-24 16:25)
- [ ] Task 5
    - [🍅:: 35m] (from:: 2023-11-24 15:05) - (to:: 2023-11-24 13:35)
- [ ] Task 6'
    - [🍅:: 26m] (from:: 2023-11-24 16:06) - (to:: 2023-11-24 14:25)
    - [🍅:: 26m] (from:: 2023-11-24 16:06) - (to:: 2023-11-24 15:25)

Notice that the hour of the from is set to 10 + task number, with the task number in the minute field as well. And the output of this: image

In Task 4 I added another sub item, and it picks up the original item from the first subitem of Task 2...

holroy avatar Nov 30 '23 20:11 holroy

This is possibly related to #2155, although that is using simple lists, and not tasks with subitems. Still its kind of the same behaviour.

holroy avatar Nov 30 '23 20:11 holroy

This is fixed in v0.5.67

reply2za avatar Jul 13 '24 13:07 reply2za