Giter Site home page Giter Site logo

Comments (3)

dkhalanskyjb avatar dkhalanskyjb commented on September 27, 2024 1

Strange. We are not doing anything fancy with TwoDigitNumber. Filed an issue for Android: https://issuetracker.google.com/issues/351858994

from kotlinx-datetime.

dkhalanskyjb avatar dkhalanskyjb commented on September 27, 2024

@adesentenac, we have a reply from Google: https://issuetracker.google.com/issues/351858994#comment2 Could you obtain the dump and send it either here (I'll resend relay it to the Android issue tracker) or directly there? I suppose a self-contained project where the issue reproduces is fine, too.

from kotlinx-datetime.

sgjesse avatar sgjesse commented on September 27, 2024

@adesentenac, I am still interested in this issue. Can you provide a small reproduction (or share a dump of a failing project). If I just add this code to a Kotlin app and build a release version with minifyEnabled = true it runs fine.

        val formatter = DateTimeComponents.Format { date(LocalDate.Formats.ISO) }
        val value = "2024-10-10"
        val date = formatter.parseOrNull(value)?.apply {
            setOffset(TimeZone.UTC.offset)
            dayOfMonth = 1
        }
        println("Test: " + date?.dayOfMonth)

from kotlinx-datetime.

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.