Skip to content

Off-by-one-day in hamster export tsv #576

@matthijskooijman

Description

@matthijskooijman

I recently upgraded to hamster 3.0.0, and now noticed hamster export tsv started to return slightly too much data. It seems there is an off-by-one-day error in the "to" date. For example:

matthijs@grubby:~$ hamster export tsv 2020-01-21 2020-01-22
activity        start time      end time        duration minutes        category        description     tags
Reizen  2020-01-21 08:55        2020-01-21 10:00        65.0    MKIT            Work
Reizen  2020-01-22 07:55        2020-01-22 08:26        31.0    MKIT            Work
Reizen  2020-01-23 18:09        2020-01-23 19:09        60.0    Day-to-Day

(I trimmed some extra activities for privacy and clarity)

This should, AFAIU (and it always did) return activities on the 21st and
22nd, but it also includes the 23rd. I originally noticed this with
february 29th and suspect an issue with leap years, but it seems to
happen with any date I've tried so far.

I have not investigated yet, first wanted to at least document this.
Maybe someone else can try to reproduce this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions