radiovisual / timecard

Keep track of your project development time.
MIT License
20 stars 4 forks source link

Does not span across days; only hours in day #31

Closed radiovisual closed 7 years ago

radiovisual commented 7 years ago

If I start a project at 08:54:42 on Monday, and end at 08:54:43 on Tuesday, I would expect to have logged a total of exactly one day and one second, but in this scenario, timecard would only log it as one second because there is no concept of a DAY in the clockout scheme:

{
      "id": 0,
      "date": "Mon Feb 13 2017",
      "startTime": "08:54:42",
      "endTime": "08:54:43"
    }

Both clockin and clockout should have a datetime associated with it, not just a time.

radiovisual commented 7 years ago

This is a big bug, fixing it now.

radiovisual commented 7 years ago

fixed via https://github.com/radiovisual/timecard/commit/671d1e62780f09596c054f8919b9c2769d50c8cb