pimutils / pimutils/khal

Default day heuristic needs to consider time of day

Open
#849 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug
Dominant language
Python
Stars
3.1k
Forks
233
Avg merge
1h 44m
Merged PRs (30d)
1

Description

It's Thursday 14:00 here, and I just added a new event for 11:30. Khal added it to today, which makes no sense. Similar to how scheduling an event for Wednesday doesn't register an event for yesterday in this scenario, khal should really consider the time of day and default to adding an event for tomorrow, if the unqualified time (i.e. time without date) falls within the next 24:00 hours).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named in the issue. Locate khal's default-day heuristic in its time parsing or event creation flow and reproduce Thursday 14:00 with an unqualified 11:30; done means the event defaults to tomorrow rather than today.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.