?
avatar schnuti
schnuti
22 Apr 2016

Steps to reproduce the issue

Click on a "date" field in a form.
1. You'll see a week number that is wrong.
2. The first day of the week is a sunday.

Expected result

  1. A correct week. I have week 16 today the popup says 15.
    You can do some calculations on timeanddate.com
  2. Is a bug for a lot of users living in countries following international satandards ISO 8601 where monday is the first day of the week. If it's not configurable the ISO standard should be followed.

You get the expected results with the php-object DateTime(). I've tested.

System information (as much as possible)

Joomla 3.5.1
PHP 7.0.4

Additional comments

It's better to remove the week from the popup than show a false one. This can be done by changing a js setting. I wanted to use the calandar to help the user find a week number - not possble,

I also tried to modify the setting for the first week day but it seems not to work.

I tried to use a template override for the isis template but the javascript code didn't load for some reason?

I'm not fit enough to make a PR with javascript.

avatar schnuti schnuti - open - 22 Apr 2016
avatar brianteeman
brianteeman - comment - 22 Apr 2016

In the xml file for your language is a field
/ where you can define if a week starts on a sunday or monday

Does this resolve your problem?

avatar brianteeman brianteeman - change - 22 Apr 2016
Category Fields JavaScript
avatar brianteeman
brianteeman - comment - 22 Apr 2016

oops looks like the name of the field was swallowed by github
it is < weekday >


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10038.

avatar schnuti
schnuti - comment - 22 Apr 2016

Thanks a lot, changing language solved both week and date.
The other language has set to 1 in the xml.
I normaly work in English on backend for wich I get it as described above.

Are you a week behind?

Please close the issue!

avatar schnuti
schnuti - comment - 22 Apr 2016

Me too. Tag disappear.

Tag is firstDay

avatar brianteeman brianteeman - close - 22 Apr 2016
avatar brianteeman
brianteeman - comment - 22 Apr 2016

Closing - its weird that the week starts on different days in different places

avatar brianteeman brianteeman - change - 22 Apr 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-04-22 10:19:10
Closed_By brianteeman
avatar brianteeman brianteeman - close - 22 Apr 2016
avatar brianteeman brianteeman - close - 22 Apr 2016
avatar schnuti
schnuti - comment - 22 Apr 2016

@brianteeman
Yes that's weird with the day but more problems with the week.
If I have a delivery in week 17 I have only a few days left. You have more than a week.
Is this true? It's really up to misunderstandings between producer and customer.

avatar brianteeman
brianteeman - comment - 22 Apr 2016

Not all parts of the world consider the week to begin with Monday. For example, in some Muslim countries, the normal work week begins on Saturday, while in Israel it begins on Sunday. In the US, although the work week is usually defined to start on Monday, the week itself is often considered to start on Sunday.

avatar schnuti
schnuti - comment - 22 Apr 2016

@brianteeman
I know and knew about the differences to the start of the week.
I see the problem with the WEEK-NUMBER that you might promise a delivery in week 16, i.e. this week for me and next week for you.

avatar brianteeman
brianteeman - comment - 22 Apr 2016

Yeah it's a pain. In the UK we even have another week count based on the
tax year so week 1 begins April 1st.

avatar brianteeman brianteeman - change - 23 Apr 2016
Labels Added: ?

Add a Comment

Login with GitHub to post a comment