Title: Inconsistent Get-Date behavior between windows powershell and powershellcore · Issue #16928 · PowerShell/PowerShell · GitHub
Open Graph Title: Inconsistent Get-Date behavior between windows powershell and powershellcore · Issue #16928 · PowerShell/PowerShell
X Title: Inconsistent Get-Date behavior between windows powershell and powershellcore · Issue #16928 · PowerShell/PowerShell
Description: Summary of the new feature / enhancement As a user, I want Get-Date to be consistent between windows powershell and powershellcore so I don't have to maintain separate, customized scripts for windows powershell and powershellcore. If you...
Open Graph Description: Summary of the new feature / enhancement As a user, I want Get-Date to be consistent between windows powershell and powershellcore so I don't have to maintain separate, customized scripts for windo...
X Description: Summary of the new feature / enhancement As a user, I want Get-Date to be consistent between windows powershell and powershellcore so I don't have to maintain separate, customized scripts for w...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/16928
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Inconsistent Get-Date behavior between windows powershell and powershellcore","articleBody":"### Summary of the new feature / enhancement\r\n\r\nAs a user, I want Get-Date to be consistent between windows powershell and powershellcore so I don't have to maintain separate, customized scripts for windows powershell and powershellcore.\r\n\r\nIf you run the following command, you get a decimal value in windows powershell and an integer value in powershellcore.\r\n`(Get-Date -Date (Get-Date).AddSeconds(-60).ToUniversalTime() -UFormat %s)`\r\n\r\nThis should be consistent between the two so I can use the same script between windows powershell and powershell core.\r\n\r\n### Proposed technical implementation details (optional)\r\n\r\n_No response_","author":{"url":"https://github.com/TheOnlyWei","@type":"Person","name":"TheOnlyWei"},"datePublished":"2022-02-26T00:29:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/16928/PowerShell/issues/16928"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3cd0b6da-aa68-9a0c-34ac-60b81bacb588 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE68:2F1CDA:2E1793:3F3FAB:6A5521C3 |
| html-safe-nonce | 2588ad76b3df6956b751485be03ca57b1dfb509d2e2341645d7f6b82a9da7049 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTY4OjJGMUNEQToyRTE3OTM6M0YzRkFCOjZBNTUyMUMzIiwidmlzaXRvcl9pZCI6IjMwMTYzNDk1MjA4MTA1NDk2OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9a533f78218210d608cf52e78eadd9eb7d896afec28226c8a91c7789992d7cfb |
| hovercard-subject-tag | issue:1150992018 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/16928/issue_layout |
| twitter:image | https://opengraph.githubassets.com/da0e41608e094d31a796d57ac466847590ade4ca279a73556c2d2e306e83f63f/PowerShell/PowerShell/issues/16928 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/da0e41608e094d31a796d57ac466847590ade4ca279a73556c2d2e306e83f63f/PowerShell/PowerShell/issues/16928 |
| og:image:alt | Summary of the new feature / enhancement As a user, I want Get-Date to be consistent between windows powershell and powershellcore so I don't have to maintain separate, customized scripts for windo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TheOnlyWei |
| hostname | github.com |
| expected-hostname | github.com |
| None | 682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 358dd24ad7465d20e3fae729b5b169d35b0dd7f8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width