Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

Add "last_month" shortcut #105

Open
demisx opened this issue Feb 6, 2020 · 0 comments · May be fixed by #158
Open

Add "last_month" shortcut #105

demisx opened this issue Feb 6, 2020 · 0 comments · May be fixed by #158

Comments

@demisx
Copy link

demisx commented Feb 6, 2020

Similar to "this_month", please add "last_month" shortcut. It's often used to invoice for last month work. My understanding it would go into https://github.com/kriskbx/gitlab-time-tracker/blob/master/src/gtt-report.js#L128-L140 data shortcuts section:

if (program.last_month)
    config
        .set('from', moment().subtract(1, 'months').startOf('month'))
        .set('to', moment().subtract(1, 'months').endOf('month'));
wsbrs added a commit to wsbrs/gitlab-time-tracker that referenced this issue Jul 3, 2024
@wsbrs wsbrs linked a pull request Jul 3, 2024 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant