pimutils / pimutils/khal

get rid of config variables `datetimeformat` and `longdatetimeformat`

Open
#208 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

breaks compatibility cat: configuration type: enhancement
Dominant language
Python
Stars
3.1k
Forks
233
Avg merge
1h 44m
Merged PRs (30d)
1

Description

We should be able to concatenate date (longdate) with time, or is there any country where one would usually use another notation for dates and times than for datetimes?

This would a) simplify configuration and b) some internals could become cleaner (at least less code).

Example:

configured:
timeformat: %H:%M
dateformat: %d.%m.
longdateformat: %d.%m.%Y

infered:
datetimeformat (dateformat + timeformat): %d.%m. %H:%M
longdatetimeformat (dateformat + timeformat): %d.%m.%Y %H:%M

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

Start by tracing where the datetimeformat and longdatetimeformat configuration variables are read and where date, longdate, and time formats are combined. Confirm the inferred formats against existing configuration and formatting behavior, then verify that the separate datetime variables are no longer needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.