calendar icon indicating copy to clipboard operation
calendar copied to clipboard

Start of the week day not correct, locale ignored

Open UNICodehORN opened this issue 4 years ago β€’ 19 comments

Steps to reproduce

  1. Open settings and change locale from (e.g.) en_US to: Locale Settings
  2. Open calendar.

Expected behaviour

Week should start with monday as indicated in the settings. Name of days should be respecting the language (they are english instead of german in this case). Popup in "Create events" should also start on monday instead of sunday.

Actual behaviour

Week starts on sunday. Names of days are english.

Calendar app

2.0.4

Client configuration

Chrome Version 84.0.4147.105 (Official Build) (64-Bit) (same for all browsers, browsers configured to german)

Server configuration

Ubuntu Server 20.04 LTS

Web server: Apache

Database: MariaDB

PHP version: 7.0.4

Nextcloud Version: 19.0.4

Updated from an older installed version or fresh install: Updated

Nextcloud configuration:

{ "system": { "instanceid": "REMOVED SENSITIVE VALUE", "passwordsalt": "REMOVED SENSITIVE VALUE", "secret": "REMOVED SENSITIVE VALUE", "trusted_domains": [ "REMOVED SENSITIVE VALUE" ], "datadirectory": "REMOVED SENSITIVE VALUE", "dbtype": "mysql", "version": "19.0.4.2", "overwrite.cli.url": "REMOVED SENSITIVE VALUE", "dbname": "REMOVED SENSITIVE VALUE", "dbhost": "REMOVED SENSITIVE VALUE", "dbport": "", "dbtableprefix": "oc_", "dbuser": "REMOVED SENSITIVE VALUE", "dbpassword": "REMOVED SENSITIVE VALUE", "installed": true, "htaccess.RewriteBase": "/", "maintenance": false, "theme": "", "logfile": "REMOVED SENSITIVE VALUE", "loglevel": 2, "app_install_overwrite": [ "calendar", "files_external_dropbox" ], "mail_smtpmode": "smtp", "mail_smtpsecure": "ssl", "mail_sendmailmode": "smtp", "mail_from_address": "REMOVED SENSITIVE VALUE", "mail_smtpauthtype": "LOGIN", "mail_smtpauth": 1, "mail_domain": "REMOVED SENSITIVE VALUE", "mail_smtphost": "REMOVED SENSITIVE VALUE", "mail_smtpport": "465", "mail_smtpname": "REMOVED SENSITIVE VALUE", "mail_smtppassword": "REMOVED SENSITIVE VALUE", "updater.release.channel": "stable", "mysql.utf8mb4": true, "memcache.local": "\OC\Memcache\APCu", "ldapIgnoreNamingRules": false, "ldapProviderFactory": "OCA\User_LDAP\LDAPProviderFactory" } }

Logs

Browser log

JS Log JS Info Log NC Settins

UNICodehORN avatar Oct 22 '20 05:10 UNICodehORN

Subscribing and +1.

Week starts on monday: image

Calendar starts on sunday: image

NC 21.0.1 Calendar 2.2.1.

Redsandro avatar May 05 '21 12:05 Redsandro

Replicatable on v21.0.2

kominoshja avatar Jun 15 '21 13:06 kominoshja

I found this issue searching for how to have weeks start on Monday.

Nextcloud 20.0.9, calendar 2.3.0, this setting works correctly for me (with lang/locale=German/German, as well as English/Czech, which is what I actually use). I don't see the Deutsch locale though.

Maybe 2.3.0 fixed it, or it must depend on something outside the app - locale files installed in the system or such?

MightyPork avatar Jul 08 '21 18:07 MightyPork

Strange.. when I set lang = English, locale = English (Germany), then itΒ΄s Sunday, but if I set locale to Czech, then itΒ΄s Monday even English (Germany) says "Week starts on Monday"

NC: 21.0.3 Calendar: 2.3.1

ronnicek avatar Aug 01 '21 22:08 ronnicek

Appears to be derived from the language setting, setting it to the Dutch locale still starts on sunday while setting it to the Dutch language it suddenly starts on monday.... A lot of people (myself included) really don't like their native language and will always use another while retaining the customs (e.g. weeks starting on monday). Shouldn't this be configurable regardless of the language/locale?

GieltjE avatar Oct 06 '21 11:10 GieltjE

Pleeeeease make this available!

financelurker avatar Oct 22 '21 08:10 financelurker

I have the same problem as GieltjE, I prefer English for better language support, but prefer to keep dutch customs. As it says in the settings that the weekday starts on monday, I do expect it to honor that setting

TeaDrinkingProgrammer avatar Nov 18 '21 10:11 TeaDrinkingProgrammer

Can this be up-voted or bumped? :)

mischapeters avatar Dec 06 '21 14:12 mischapeters

Yes, add a πŸ‘ to the original post

ChristophWurst avatar Dec 06 '21 14:12 ChristophWurst

I agree to @TeaDrinkingProgrammer

The week in calendar starts on monday, but the date format is still wrong, which is also mentioned in the first post and in #2681 It is mm/dd/yyyy and shoud be dd.mm.yyyy

Language: English (US) Locale: German (Germany) NC: 22.2.3 Calendar: 3.0.2

Screenshot_2021-12-17 9:58:26

adargu avatar Dec 17 '21 09:12 adargu

I've changed my settings to Language: English (British English) Locale: English (Europe)

It says 'Week Starts on Monday' but the calendar still displays starting on Sunday. Just adding that this is also a issue for me

kbmetz avatar Mar 21 '22 23:03 kbmetz

I'd also appreciate it if the start of the week could be set independently set from the Locale.

uli-f avatar May 19 '22 05:05 uli-f

I'm seeing the Locale of English (Australia) showing up as "Week starts on Sunday", which is a mistake in itself. Australia uses the ISO standard for start of week, which is Monday.

This seems to have changed with the latest update to Nextcloud 22.2.7 / Calendar 3.3.0 the other day. Previously, we had weeks starting on Monday.

EDIT - OS: Ubuntu 20.04 LTS/Linux 5.4.0 Now upgraded to Calendar 3.3.1, and all English locales are still showing up as Week starts on Sunday.

politas avatar May 22 '22 00:05 politas

I see that a lot of people run into the problem. However I personally do not face the issue anymore.

Maybe it is helpful if you add more information on the reports. I am on 22.2.7, not the most recent version but I guess in my case the issue was only in certain versions. Os is Ubuntu on the LTS 20.04 with latest updates from official repos.

Except for updates I did not perform an special steps to fix this.

If you face the same issue please include at least your OS version and next loud server version you are using, additionally the locale might be interesting.

UNICodehORN avatar May 22 '22 08:05 UNICodehORN

Here is a bit more information about my configuration:

  • Nextcloud 23.0.4
  • Calendar 3.3.1
  • Language English (US)
  • Locale English (Australia) which falsely states 'Week starts on Sunday'

Even if I explicitly set the Locale to English (Europe) and it states 'Week starts on Monday' the weeks in the calendar still start with Sunday.

I am very happy to provide more information if that is helpful to track this down.

uli-f avatar May 23 '22 01:05 uli-f

Same issue:

Nextcloud 24.0.1 Calendar 3.3.2

An other observation. I don't even have to switch locale to have the settings switch to 'Week starts on Monday'

I start with:

Language: English (United States) Locale: English (US)

Only switching Language to "English (British English)" is already enough to switch settings to 'Week starts on Monday' But also in combination with Locale to "English (Europe)" the calendar stays at Sunday as start of the week.

jalbstmeijer avatar Jun 16 '22 19:06 jalbstmeijer

My calendar and user settings just changed by themselves to "Starts on Sunday", without any change of Locale. Nextcloud 22.2.8 / Calendar 3.4.0

politas avatar Jun 22 '22 06:06 politas

I agree the issue is very severe, please prioritize

on any locale with NC 24.0.2 and Calendar App just updated to 3.4.2 i am able to reproduce the issue

locale English, region English europe, Shows week starts with Monday Calendar App still shows Sunday? do i need to reboot the nextcloud server in order for the changes to become effective? ;)

ant0nwax avatar Jul 09 '22 04:07 ant0nwax

I have set my locale to "Czech" so as to temporarily solve the problem (as suggested above) until we have a proper solution. Although English (US) remains my interface language, Czech now appears in a few places, such as file age in the Files browser.

cbrace avatar Jul 09 '22 10:07 cbrace

Can confirm there is still a problem in 25.0.3.

On some of the locales (like English(World) or English (Europe)) there is a notification below stating "Week starts on Monday", however, when opening the calendar, the leftmost day is Sunday. It works in English (United Kingdom), Scots Gaelic or German for example.

Furthermore, the list seems to be displayed in the set language, but sorted by the name in its own language, which doesn't make sense at all. As is: German -> English -> Spanish -> French Cause: Deutsch -> English -> Espanol -> Francais To make the confusion complete, The display language is shown in the respective language, but sorted by... uhm... this is a tricky one. Espanol is between English and Francais, which is correct, but Deutsch comes after that.

I mean, the latter is not a biggie. I can find my language in the list, no matter how it's sorted or displayed. Then it's set and forget... usually.

The former, however, is a bit of a doodoo. I very nearly started telling people that I messed up my appointments, before I saw that the week started on Sunday, which was a result of me setting the locale to "English (World)"

Opinionated Garbage: Whoever came up with the idea of putting one part of the weekEND at the beginning, deserves a pat on the back for their trolling ablilites.

joeysundotcom avatar Jan 27 '23 18:01 joeysundotcom

Is there a workaround for this, that will allow me to use English language, but have Monday as first day of the week?

shalak avatar Jan 29 '23 22:01 shalak

Is there a workaround for this, that will allow me to use English language, but have Monday as first day of the week?

Yes. Keep the language on English, but set the locale to something else. "English (United Kingdom)" seems to do it. Careful though. UK is day/month/year, US is month/day/year

Loved to see ISO there... or a manual setting.

joeysundotcom avatar Jan 30 '23 08:01 joeysundotcom

No, there is no workaround that works for everyone. Please stop claiming that there is. Finding a locale that specifies Week starts on Monday still has the calendar starting on Sunday.

Also, the only English locale that comes up as Starts on Monday is (World), which puts the date in the annoying US MM/DD/YYYY style used by no one else in the world.

politas avatar Jan 30 '23 09:01 politas

Please follow #183 for the feature to pick the first day of the week. This issue is about the locale setting not being properly followed by the calendar app.

tcitworld avatar Jan 30 '23 10:01 tcitworld

I was commenting on the ineffectiveness of changing locale as a workaround.

politas avatar Feb 02 '23 00:02 politas

USA local here. We find date format MM/DD/YYYY annoying also!

I wish tech companies all made an ISO 8601 date/time standard (i.e., YYYY-MM-DD Thh:mm) option in settings.

Also, the only English locale that comes up as Starts on Monday is (World), which puts the date in the annoying US MM/DD/YYYY style used by no one else in the world.

gmejzej avatar Feb 23 '23 11:02 gmejzej

I thought: why wait around if I can try my hand at fixing it myself πŸ˜„. I have never worked on Nextcloud apps though, so let's see where this goes.

TeaDrinkingProgrammer avatar Feb 25 '23 13:02 TeaDrinkingProgrammer

this is a plugin, thank you

Kind Regards From Phoneland

On Sat, Feb 25, 2023, 14:42 Stijn van Houwelingen @.***> wrote:

I thought: why wait around if I can try my hand at fixing it myself πŸ˜„. I have never worked on Nextcloud though, so let's see where this goes.

β€” Reply to this email directly, view it on GitHub https://github.com/nextcloud/calendar/issues/2663#issuecomment-1445122959, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH7N7TEEK7EQGEAOPQ56KELWZID2ZANCNFSM4S2VQ5QQ . You are receiving this because you commented.Message ID: @.***>

ant0nwax avatar Feb 25 '23 13:02 ant0nwax

My calendar did not change, until I forced the locale in the config.php. "force_locale" => "eu"

Then it worked.

I'm further investigating this, because: //! locale : Basque [eu]

I'd like to have an english locale which starts with monday. But all my others where ignored so far.

torolito avatar Mar 02 '23 10:03 torolito

Nextcloud 25.0.4
Calendar  4.2.4
Language English (US)
Locale Swedish

Result: Week starts on Monday, 24h time, ISO dates. HOWEVER, on externally published calendar: Week starts on Sunday, 12h time AM/PM, US date format!

Expected: At minimum, same appearance on published calendar. But...it ought to be more flexible:

  • In my view, separate the settings from locale, as many have said.
  • Then, ideally, provide separate settings for the published calendar, so that it can be optimized for the intended viewer.

gunnarx avatar Mar 16 '23 23:03 gunnarx