Coder Social home page Coder Social logo

Comments (7)

TalAloni avatar TalAloni commented on July 20, 2024

What is the value being represented here?
There was a similar issue with a file date set in the year 30280 ( #183 )
Not all FileTime values can be represented by the framework, anything later than the year 9999 is problematic.

from smblibrary.

frogcrush avatar frogcrush commented on July 20, 2024

I'm encounting this issue as well. I've tried DateTime.FromFileTime(0), new DateTime(), DateTime.Now, and a parsed DateTime for the current date.

I'm using .NET 8 and the program is running in a Linux Docker container. v1.5.1.3 and adapters v1.5.1

from smblibrary.

TalAloni avatar TalAloni commented on July 20, 2024

Hi Tylor, same question - what is the value being represented?

from smblibrary.

TalAloni avatar TalAloni commented on July 20, 2024

Calling DateTime.Now.ToFileTimeUtc() on .NET 8.0 seems to work for me without issues, so I have to suspect that the issue is with the DateTime value.

from smblibrary.

TalAloni avatar TalAloni commented on July 20, 2024

According to the docs this exception will be thrown if "The resulting file time would represent a date and time before 12:00 midnight January 1, 1601 C.E. UTC."

from smblibrary.

TalAloni avatar TalAloni commented on July 20, 2024

You can make an argument for treating any value < year 1601 as DateTime.MinValue, if that's indeed the issue.
This can also be done at the INTFileStore implementation level without modifications to the library.

from smblibrary.

Ashthos avatar Ashthos commented on July 20, 2024

I suspect my issue was due to a DateTime.MinValue being set. I've not been able to reliably replicate the exception however.

from smblibrary.

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.