-
Notifications
You must be signed in to change notification settings - Fork 8.1k
#4750 Fix Get-Date -UFormat %G and %g behavior #14555
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
Conversation
|
@brianary Please look test fails. |
|
Tricky doing this blind. |
src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetDateCommand.cs
Outdated
Show resolved
Hide resolved
Every CI has Details button. Then you need to press "View more details on Azure Pipelines" on bottom of right column. There you can see whole build and test process. (And download artifacts too.) |
|
Sure, I've figured out how to view the test details. I just meant I haven't been able to get a local build environment working yet, so I'm over-relying on the build server and tests still. I'll get those names changed. |
You can open new issue and share what is problems you have so that we can help you. (Of cause if you plan to continue contributing.) |
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
|
Would be good for WG-Engine (feels like this is the best match) to review this breaking change in |
|
@anmenaga You could directly request a review from Engine person. |
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
|
@brianary Please resolve merge conflicts. |
|
@brianary Please fix typo in your test file. |
|
Just trying to keep up with master |
test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Date.Tests.ps1
Outdated
Show resolved
Hide resolved
|
Is there anything else I need to do here? I'm a little concerned that PR 7183 has been merged but this one hasn't since the two will be used together in date formatting. |
Waiting MSFT team approval... |
src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetDateCommand.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetDateCommand.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetDateCommand.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetDateCommand.cs
Outdated
Show resolved
Hide resolved
test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Date.Tests.ps1
Outdated
Show resolved
Hide resolved
Camel case for local vars, as suggested in PR. Co-authored-by: Ilya <darpa@yandex.ru>
|
@rjmholt I've implemented your suggestions and rebased from upstream master to try and simplify merging. |
src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetDateCommand.cs
Outdated
Show resolved
Hide resolved
|
Ouch, not a lot of detail on those failing tests. |
|
@brianary I have checked new tests on WSL with Linux |
|
@iSazonov I see one of the new years was wrong. Fixing… |
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
|
@brianary Thanks for your contribution! |
|
Happy to help! |
|
🎉 Handy links: |
PR Summary
Corrects the behavior of %G and %g (variants of the same value) in Get-Date -UFormat to match ISO 8601.
PR Context
This is to fix one of the format issues in #4750.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.