Simple-Calendar
Simple-Calendar copied to clipboard
Can't find the option to change date format
Hello ! After activating the widget i noticed the date format there was not what i wanted (month/day-number instead of day-number/month). I searched in the issues here and found a guy saying it was located in Settings (here), but i didn't see anything in the app settings that could do it, nor in the settings of my phone. Can you help me ? or if it's not a feature, can we make it into one ?
that ticket was about the time format (24 hours format or not), not the date format. Adding date format customization is on the roadmap.
Thank you for your answer :)
I confirm the above requested enhancement => see below screenshot of the date displayed in "Events List View". In french, it should be "14 avril (Mer.)" or even other formats like "Mer. 14 avril".
Other sample in the widget: date with year should be something like "Mercredi 14 avril 2021" (in french) 👍
Can this be so complicated? Can't the date format simply be requested from the system, like https://stackoverflow.com/a/18982842 says:
Format dateFormat = android.text.format.DateFormat.getDateFormat(getApplicationContext());
String pattern = ((SimpleDateFormat) dateFormat).toLocalizedPattern();
Honestly, this should be highest priority. For some languages, Simple Calendar really looks like a backward app due to this.
there is also android.text.format.DateFormat.getBestDateTimePattern
:
"One difference is that order is irrelevant. For example, "MMMMd" will return "MMMM d" in the en_US locale, but "d. MMMM" in the de_CH locale."
Skeletons see https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
->
Format dateFormat = new SimpleDateFormat(
android.text.format.DateFormat.getBestDateTimePattern(Locale.getDefault(), "MMMMd"));
This issue was opened almost three years ago - is a fix for this expected? A calendar app needs to be able to handle dates properly and this should be the number one development priority for Simple Calendar. Until this is fixed, the app is not usable.
This is also emphatically not a feature request; it is a bug.
EDIT Why this is a bug: today is 26 June 2023. Simple Calendar will in German show me "Juni 26" - which in German usage can only mean the month of June in the year (20)26.
Overriding locale settings for date formats is a feature request. Dates being shown in incorrect formats is a bug!
This issue and several others made me switch from Simple Calendar to Etar almost 2 years ago. Unfortunately Etar has its own problems too, and some long standing issues have yet to be adressed too, but at least it is in a more usable state.
We don't need a custom date format, we just need localization being recognized. What are the reasons for not handling this bug? Do we have to open another issue?
We don't need a custom date format, we just need localization being recognized. What are the reasons for not handling this bug? Do we have to open another issue?
https://github.com/SimpleMobileTools/Simple-Calendar/issues/2127
Literally just did so, emphasising that date-format customisation and respecting locale settings are two separate issues.