Skip to content

[SR-9605] Date formatter grammar mistake #3563

@swift-ci

Description

@swift-ci
Previous ID SR-9605
Radar None
Original Reporter royalaaaaa (JIRA User)
Type Bug
Environment

Swift 4.2

macOS, iOS (haven't tested it on tvOS but i'm pretty sure that it's also qualifying)

Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee None
Priority Medium

md5: d80bfb31bbcc9308f8b2835bdac5537e

Issue Description:

In Polish language this example have one minor grammar mistake:

let dateFormatter = DateFormatter()
dateFormatter.setLocalizedDateFormatFromTemplate("MMMMy")
let date = dateFormatter.string(from: Date())
 
print(date)

date variable outputs "styczeń 2019" (on 6th of January 2019) when it should capitalize first letter of month (as in "Styczeń 2019"). I couldn't find any format template that capitalizes it and i had to do it manually (by creating an extension to String). It is not critical or anything, but it's definitely not correct.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions