Simple-Calendar icon indicating copy to clipboard operation
Simple-Calendar copied to clipboard

Can't find the option to change date format

Open Obigre opened this issue 4 years ago • 11 comments

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 ?

Obigre avatar Jan 05 '20 18:01 Obigre

that ticket was about the time format (24 hours format or not), not the date format. Adding date format customization is on the roadmap.

tibbi avatar Jan 06 '20 08:01 tibbi

Thank you for your answer :)

Obigre avatar Jan 06 '20 17:01 Obigre

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".

Date Display

ldmpub avatar Apr 14 '21 22:04 ldmpub

Other sample in the widget: date with year should be something like "Mercredi 14 avril 2021" (in french) 👍 Widget

ldmpub avatar Apr 14 '21 22:04 ldmpub

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();

hurzl avatar Aug 10 '22 16:08 hurzl

Honestly, this should be highest priority. For some languages, Simple Calendar really looks like a backward app due to this.

ltguillaume avatar Aug 23 '22 16:08 ltguillaume

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"));

hurzl avatar Aug 25 '22 08:08 hurzl

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!

emes81 avatar Jun 26 '23 06:06 emes81

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.

Cwpute avatar Jun 26 '23 07:06 Cwpute

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?

hurzl avatar Jun 26 '23 08:06 hurzl

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.

emes81 avatar Jun 26 '23 08:06 emes81