FirstDayOfTheWeek

Using Servoy to administrate the content of your website? Discuss all webrelated Servoy topics on this forum!

FirstDayOfTheWeek

Postby patrick1645350822 » Tue Sep 13, 2022 11:25 am

Depending on the clients location the FirstDayOfTheWeek should be different: https://www.timeanddate.com/calendar/da ... -week.html

I tried a lot of different stuff but no-matter what I try it seems that it is always depending on the server setting what the result is.
scopes.svyDateUtils.getFirstDayOfWeek(startDate) or utils.isMondayFirstDayOfWeek();

These values stay the same even if you change the locale: i18n.setLocale(language,country) or change the language / location in the browser.
What I also see is that i18n.getCurrentCountry() is never filled? i18n.getCurrentLanguage() is changing depending on browser setting.

I develop on a Mac en deploy to de Servoy Cloud.

Anyone had the same issue or maybe has a solution for this?
Greetings,

Patrick Marelis
Sileram BV
patrick1645350822
 
Posts: 32
Joined: Sun Feb 20, 2022 11:53 am

Return to Web Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron