Coder Social home page Coder Social logo

Comments (15)

PrzemyslawKlys avatar PrzemyslawKlys commented on May 30, 2024 1

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.

Raipel avatar Raipel commented on May 30, 2024 1

It worked after the module Update ! Thanks a lot!

from pswindocumentation.o365healthservice.

PrzemyslawKlys avatar PrzemyslawKlys commented on May 30, 2024

Can you let me know which tenant location you have? I've tested on Europe one.

from pswindocumentation.o365healthservice.

harleykin avatar harleykin commented on May 30, 2024

I'm in United States and am seeing this.

from pswindocumentation.o365healthservice.

PrzemyslawKlys avatar PrzemyslawKlys commented on May 30, 2024

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.

Raipel avatar Raipel commented on May 30, 2024

I'm in Europe and see it, too.

from pswindocumentation.o365healthservice.

PrzemyslawKlys avatar PrzemyslawKlys commented on May 30, 2024

Right, Ok, guys. Hold on. Will test this with 3 other tenants I have.

from pswindocumentation.o365healthservice.

PrzemyslawKlys avatar PrzemyslawKlys commented on May 30, 2024

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.

PookyBeer avatar PookyBeer commented on May 30, 2024

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.

PookyBeer avatar PookyBeer commented on May 30, 2024

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.

PookyBeer avatar PookyBeer commented on May 30, 2024

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.

PrzemyslawKlys avatar PrzemyslawKlys commented on May 30, 2024

Does this affect everyone or just Australia?

from pswindocumentation.o365healthservice.

PookyBeer avatar PookyBeer commented on May 30, 2024

from pswindocumentation.o365healthservice.

PrzemyslawKlys avatar PrzemyslawKlys commented on May 30, 2024

Ye, I guess that's what you get when you push dates manually as you enter them.

from pswindocumentation.o365healthservice.

PrzemyslawKlys avatar PrzemyslawKlys commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.