Comments (15)
Ok, it seems MS guys changed the date format. It's like they type this stuff manually. I have some working concept. will publish soon after few more tests on the date format.
from pswindocumentation.o365healthservice.
It worked after the module Update ! Thanks a lot!
from pswindocumentation.o365healthservice.
Can you let me know which tenant location you have? I've tested on Europe one.
from pswindocumentation.o365healthservice.
I'm in United States and am seeing this.
from pswindocumentation.o365healthservice.
Ok figures. Most likely dates behave differently in US then those I have in my tenant. I'll make a test with two other tenants. I believe I have at least one in the US.
from pswindocumentation.o365healthservice.
I'm in Europe and see it, too.
from pswindocumentation.o365healthservice.
Right, Ok, guys. Hold on. Will test this with 3 other tenants I have.
from pswindocumentation.o365healthservice.
Please try:
Update-Module PSWinDocumentation.O365HealthService
Run it and let me know the results. I've added a warning so that if the format of date will be wrong, or DateTime conversion fails it will show it like:
Write-Warning "ConvertFrom-UTCTime - couldn't convert time. Please report on GitHub - $Time. Skipping conversion..."
If that happens please give me information what does it says, so I can address this. It shouldn't crash thou so data should be readable.
from pswindocumentation.o365healthservice.
We are seeing this issue in Australia:
WARNING: ConvertFrom-UTCTime - couldn't convert time. Please report on GitHub - 9/29/2021 6:00:00 AM. Skipping conversion...
WARNING: ConvertFrom-UTCTime - couldn't convert time. Please report on GitHub - Tuesday, May 25, 2021, at 7:00 PM UTC unless our continued investigation identifies additional information. Skipping conversion...
WARNING: ConvertFrom-UTCTime - couldn't convert time. Please report on GitHub - Friday, May 14th, 2021, at 12:00 AM UTC.. Skipping conversion...
WARNING: ConvertFrom-UTCTime - couldn't convert time. Please report on GitHub - Friday, May 14th, 2021, at 12:00 AM UTC.. Skipping conversion...
WARNING: ConvertFrom-UTCTime - couldn't convert time. Please report on GitHub - Friday, May 14th, 2021, at 12:00 AM UTC.. Skipping conversion...
WARNING: ConvertFrom-UTCTime - couldn't convert time. Please report on GitHub - Friday, May 14th, 2021, at 12:00 AM UTC.. Skipping conversion...
WARNING: ConvertFrom-UTCTime - couldn't convert time. Please report on GitHub - Friday, May 14th, 2021, at 12:00 AM UTC. Skipping conversion...
WARNING: ConvertFrom-UTCTime - couldn't convert time. Please report on GitHub - Friday, May 14th, 2021, at 12:00 AM UTC. Skipping conversion...
WARNING: ConvertFrom-UTCTime - couldn't convert time. Please report on GitHub - Friday, May 14th, 2021, at 12:00 AM UTC. Skipping conversion...
from pswindocumentation.o365healthservice.
FWIW, I updated my copy of ConvertFrom-UTCTime to have this:
$NewTime = ($Time -replace ", at" -replace "UTC.*" -replace "at" -replace "(^.+?,)" -replace "th" -replace "st" -replace "nd").Trim()
If ($NewTime -match "/")
{
Try {[DateTime]$ConvertedTime = {[DateTime]::Parse($NewTime,([Globalization.CultureInfo]::CreateSpecificCulture('en-US')))}}
Of course, MS will undoubtedly keep putting in all manner of stupid dates, but....
from pswindocumentation.o365healthservice.
Just another note. Replace also needed -replace "Augu","August" at the end. I'm sure it could be done cleaner & smarter with a regex, but just did a quick and dirty.
from pswindocumentation.o365healthservice.
Does this affect everyone or just Australia?
from pswindocumentation.o365healthservice.
from pswindocumentation.o365healthservice.
Ye, I guess that's what you get when you push dates manually as you enter them.
from pswindocumentation.o365healthservice.
Not a big deal anymore. Rewritten using graph, where most of the dates should be correct with only a problem on when parsing incident post messages - as this is still text parsing.
from pswindocumentation.o365healthservice.
Related Issues (13)
- 4o1 unauthorized HOT 1
- Error: The remote server returned an error: (400) Bad Request HOT 13
- "Extended" misspelled HOT 2
- Line 301 still has an "Exteneded" variable HOT 2
- An unexpected error occurred on a send HOT 8
- DataTable warning: table id=DT-FelhGYkd HOT 1
- WARNING: Get-Office365ServiceHealthMessages - Error: The remote server returned an error: (403) Forbidden. HOT 4
- Get-CimInstance : The specified service does not exist as an installed service. HOT 5
- StartTime & EndTime are missing HOT 5
- WARNING: ConvertFrom-UTCTime HOT 1
- ConvertFrom-UTCTime - couldn't convert time. [...] Thursday, January 26, 2023 by 1:30 AM UTC. HOT 3
- Parse exception: String '10/23/2023 07:00:00' was not recognized as a valid DateTime (v1.0.4) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pswindocumentation.o365healthservice.