Fixes #13116 - Update UFormat differences btw PS and Unix#13118
Conversation
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
There was a problem hiding this comment.
Pull request overview
Updates the Get-Date documentation to better describe differences between PowerShell -UFormat behavior and Unix strftime-style equivalents, with emphasis on week-number specifiers.
Changes:
- Updates
ms.datemetadata across affectedGet-Date.mdversions. - Replaces the PowerShell 7.x
-UFormat %snote with an example describing%Wweek-number differences between Unix and PowerShell. - Expands the Windows PowerShell (5.1) note to be broader than
%sand to call out ISO 8601 inconsistencies.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| reference/7.7/Microsoft.PowerShell.Utility/Get-Date.md | Updates ms.date and replaces the prior %s note with a %W Unix-vs-PowerShell comparison note. |
| reference/7.6/Microsoft.PowerShell.Utility/Get-Date.md | Same as 7.7: metadata update + %W Unix-vs-PowerShell comparison note. |
| reference/7.5/Microsoft.PowerShell.Utility/Get-Date.md | Same as 7.7: metadata update + %W Unix-vs-PowerShell comparison note. |
| reference/7.4/Microsoft.PowerShell.Utility/Get-Date.md | Same as 7.7: metadata update + %W Unix-vs-PowerShell comparison note. |
| reference/5.1/Microsoft.PowerShell.Utility/Get-Date.md | Updates ms.date and broadens the note to cover multiple specifiers and ISO 8601 inconsistencies. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Learn Build status updates of commit fb44ff1: ✅ Validation status: passed
For more details, please refer to the build report. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 5de287d: ✅ Validation status: passed
For more details, please refer to the build report. |
PR Summary
Update UFormat differences btw PS and Unix
PR Checklist