Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant