Skip to content

The year from date wrong after convert to string with Calendar is Japanese which was set on device setting #107

@LesuPower

Description

@LesuPower

The year from date wrong after convert to string with Calendar is Japanese which was set on the device setting. Please add the static Calendar which will use when convert date to string (Don't use Calendar. current when converting)
For example, I only want to use Calendar Gregorian for the application despite the user setting other Calendar in setting (Japanese in this example).

Date().toString(.custom("yyyy/MM/dd")) -> "0003/01/01". But the result i wish is: "2021/01/01"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions