Skip to content

Date and time syntax not working as expected in quick-add (might be me) #4194

Closed
@nicojx

Description

@nicojx

First of all, massive thank you for this amazing piece of software, and I totally understand that keeping this being developed is a massive task and can be overwhelming. I'm not expecting a quick (or any) fix, just in case this is helpful.

Your Environment

  • Version used: Web version
  • Operating System and version: Windows / Chrome browser
  • Desktop Environment:
  • Browser Name and version: Chrome

Expected Behavior

Apologies, these are two very closely related issues, so opening one report: Both of them are about date/time and duration syntax not playing nicely with each other.

Situation 1: duration after time

I add a task with <Shift>+a on the Today view, such as:
Task1 @24/4 14:30 90m +Project1

When I press Enter, I expect that a task is created for 90 minutes, scheduled on 24 April 2025 at 2:30pm. I expect to get a reminder, if at all, on the day when the task is due.

Situation 2: time after duration

To avoid this, I tried adding the duration first, and putting the project in the middle:
Task1 90m +Project1 @24/4 14:30

I expect the same task as above to be created.

Current Behavior

Situation 1

On task entry, the task entry box shows, under the task, and as expected: Project1 1h 30min Tuesday 14:40 (the "Tuesday" may be a bit misleading as it's not the coming Tuesday, but one in the far future, but not an issue).

A task is created for 24 April 1990, 2:30pm

A reminder pops up "Due task", with the options Snooze, Add to today, Start

Situation 2

On task entry, the task entry box shows a wrong scheduled time Project1 1h 30min Today 12:32 (which is 90 minutes from now)

A task is created for 31/3 (today) at 12:32 (90 min from now), with duration of 90 min. The task retains the @24/4 14:30 as part of the task description.

Steps to Reproduce (for bugs)

  1. Open web view, and add task (<Shift>+a)
  2. Enter task as described above and press Enter
  3. Check on task in project list

Can you reproduce this reliably?

Yes.

Console Output

Error Log (Desktop only)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions