Skip to content

thai_strftime: %O modifier failed to convert year to Thai digit #436

@bact

Description

@bact

O (capital Oh) modifier in thai_strftime() failed to convert %y and %Y to alternative numeric symbols (Thai digit).

Code: thai_strftime(datetime.datetime(1976, 10, 6, 1, 40), "%Od %Ob %Oy")
Expect: '๐๖ ต.ค. ๒๕๑๙'
Actual: '๐๖ ต.ค. 2519'

Metadata

Metadata

Assignees

Labels

bugbugs in the library

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions