msarhan / ummalqura-calendar

Implementation of java.util.Calendar for the Umm Al-Qura calendar system.
MIT License
154 stars 51 forks source link

Formatting not work in samsung android devices. #20

Closed ibadurrahmantalha closed 3 years ago

ibadurrahmantalha commented 4 years ago

i try it on other devices and it work perfect. But on Samsung devices it not working. below format i have checked on many devices: dateFormat.applyPattern("d MMMM, y"); in Samsung device it give "05 0009, 1441", while on other it give "05 Ramadhan, 1441"

Al-Hussein-96 commented 3 years ago

@ibadurrahmantalha any solution ?

joeyoggie commented 3 years ago

@ibadurrahmantalha I'm having something similar to this. My required pattern is "yyyy-MM-dd". On Samsung devices, it outputs: 1423-Rab-I-10 (notice the wrong month, but should be 02 not Rab-I) On OnePlus/Emulator, it outputs: 1423-02-10 which is correct.

hussein16hamada commented 3 years ago

I have the same issue

msarhan commented 3 years ago

I've added a test case for this issue: https://github.com/msarhan/ummalqura-calendar/blob/9c7b336b5062742bdb894f0c6ce31e065e08ed2e/src/test/java/com/github/msarhan/ummalqura/calendar/UmmalquraDateFormatTest.java#L113-L121 It is working fine using dd MMMM, y format.