Giter VIP home page Giter VIP logo

Comments (4)

awaescher avatar awaescher commented on July 30, 2024

Just came back to this issue and I have to tell ... I have no clue what do to with this 😅

from fusion.

salvis avatar salvis commented on July 30, 2024

Maybe allow the user to configure an alternative fallback date format? Or try the CultureInfos for the cultures in
HKCU\Control Panel\International\User Profile\Languages
per process, until one of them fits?

Or assume that all dates are for the same day, or even just for today, if you can't parse them. This is likely to cover 99% of the usages. I doubt that a lot of people let Fusion++ collect logs overnight.

I realize that this is a pain, but aborting is not a good solution...

Maybe this sheds some light on the issue:
https://stackoverflow.com/questions/62909619/powershell-uiculture-vs-windows-setting
Or at least it documents that PowerShell's behavior is, er, noteworthy...

It's strange that PowerShell seems to be able to influence the CultureInfo used for formatting the log entries. The script was called in a Visual Studio build step and I have no idea what it does. However, since you're already displaying the offending timestamp, the user could easily figure out the proper fallback format, which may not be the same for every run! Configuring one (or even a series of) date format(s) could allow to successfully treat those odd scenarios.

from fusion.

awaescher avatar awaescher commented on July 30, 2024

You can't surely tell if the cultures under HKCU\Control Panel\International\User Profile\Languages would have done it in your case, do you?

from fusion.

salvis avatar salvis commented on July 30, 2024

Yes, they would have, but this may be a coincidence.

PowerShell's behavior is so confusing, and apparently even version-dependent.

from fusion.

Related Issues (20)

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.