adfinis / adfinis/libtimed

activities.current 'from-time' attribute malformed

Open
#17 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #18 by @weberval — closed without merging
bug
Dominant language
Python
Stars
2
Forks
1
Avg merge
3m
Merged PRs (30d)
1

Description

The 'from-time' attribute reported by activities.current is a malformed datetime.datetime.
The date is 1900-01-01 but should be the actual date.

{'attributes': {'comment': 'test',
'date': datetime.date(2023, 8, 22),
'from-time': datetime.datetime(1900, 1, 1, 17, 58, 22),
'not-billable': False,
'review': False,
'to-time': None,
'transferred': False},
'id': '176718',
'relationships': {'task': {'data': {'id': '3604039', 'type': 'tasks'}},
'user': {'data': {'id': '288', 'type': 'users'}}},
'type': 'activities'}


I did not test if this is a problem somewhere else, but I suspect it.

Contributor guide

No contributing guide indexed for this repository

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 the activities.current response parsing and the conversion of its from-time attribute. Compare it with the reported date value and verify that the resulting datetime retains the actual date rather than 1900-01-01.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
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.