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-JiraIssueWorklog DateStarted different from today #324

Closed
SrpAlexis opened this issue Dec 11, 2018 · 3 comments
Closed

Add-JiraIssueWorklog DateStarted different from today #324

SrpAlexis opened this issue Dec 11, 2018 · 3 comments
Assignees
Milestone

Comments

@SrpAlexis
Copy link

SrpAlexis commented Dec 11, 2018

Description

Hi all,
I try to add Issue worklog whith another date from today.
I see all the time in exemple date with (Get-Date) but I don't see any other way to do it.

Steps To Reproduce

Add-JiraIssueWorklog "Comment" -Issue "666" -TimeSpent "00:30" -DateStarted (get-date -Date 11/12/2018)
But work with :
Add-JiraIssueWorklog "Comment" -Issue "666" -TimeSpent "00:30" -DateStarted (get-date)

Also with ((get-date).AddDays(-1)) but i whant specify the date.

I try with another time format but without any results.

Your Environment

Get-Module JiraPS -ListAvailable | Select Name, Version
Name   Version
----   -------
JiraPS 2.8.7
$PSVersionTable
PSVersion                      5.1.14409.1018   
@lipkau lipkau added this to the v2.9 milestone Dec 12, 2018
@lipkau lipkau self-assigned this Dec 12, 2018
@lipkau
Copy link
Member

lipkau commented Dec 12, 2018

Thank you for reporting this.
This is indeed a bug. You can see the difference between the two commands you showed with this:

(Get-Date).ToString("o");(get-date -Date 12/12/2018).ToString("o")

@lipkau lipkau mentioned this issue Dec 12, 2018
6 tasks
@ghost ghost added the Status:In Review label Dec 12, 2018
@SrpAlexis
Copy link
Author

Thanks @lipkau , i'm doing some test and it's can work with this way :
(get-date -Year 2018 -Month 12 -Day 11)

lipkau added a commit to lipkau/JiraPS that referenced this issue Dec 12, 2018
lipkau added a commit that referenced this issue Dec 12, 2018
@lipkau lipkau mentioned this issue Dec 12, 2018
@lipkau lipkau closed this as completed in 1f5f641 Dec 12, 2018
@ghost ghost removed the Status:In Review label Dec 12, 2018
@SrpAlexis
Copy link
Author

Great it's woking with get-date -date dd/MM/yyyy) Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants