Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-10 Thread Semmel
On Mar 9, 8:13 pm, Karen Tracey wrote: > I still see no reason to change it. I, personally, haven't noticed any > convergence on a standard starting weekday of Monday in everyday life -- all > my wall calendars (3) start with Sunday, though my desk calendar starts with > Monday.  Granted it's a b

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-10 Thread Semmel
On Mar 9, 11:48 am, Malcolm Tredinnick wrote: > So what??? Nobody actually does print out those standards and read them > and it takes approximately 3 seconds, if you think very slowly, to be > able to handle Sunday as the first day of the week if you were > previously handling Monday. True, i d

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-09 Thread Karen Tracey
On Mon, Mar 9, 2009 at 11:11 AM, Casper Star wrote: > On Mar 9, 11:48 am, Malcolm Tredinnick > wrote: > > This is getting ridiculous. > > This seems to move towards some kind of religious war (this is > ridiculous by its very nature) and I surely could live we either > decision . But I would expe

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-09 Thread Casper Star
On Mar 9, 11:48 am, Malcolm Tredinnick wrote: > This is getting ridiculous. This seems to move towards some kind of religious war (this is ridiculous by its very nature) and I surely could live we either decision . But I would expect django as a python webframework to mimic the python implemen

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-09 Thread Alex Gaynor
On Mon, Mar 9, 2009 at 5:48 AM, Malcolm Tredinnick wrote: > > This is getting ridiculous. > > On Mon, 2009-03-09 at 03:20 -0700, Semmel wrote: > > On Mar 6, 7:24 am, Russell Keith-Magee wrote: > > > Both options are supported _in many cases_. Not _all_ cases. The > > > Sunday=1 case is supported

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-09 Thread Malcolm Tredinnick
This is getting ridiculous. On Mon, 2009-03-09 at 03:20 -0700, Semmel wrote: > On Mar 6, 7:24 am, Russell Keith-Magee wrote: > > Both options are supported _in many cases_. Not _all_ cases. The > > Sunday=1 case is supported by all the backends. > > Imho that's no real argument. Yeah, i can und

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-09 Thread Semmel
On Mar 6, 7:24 am, Russell Keith-Magee wrote: > Both options are supported _in many cases_. Not _all_ cases. The > Sunday=1 case is supported by all the backends. Imho that's no real argument. Yeah, i can understand why this was choosen in the first way (because it's somehow easier to implement)

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-08 Thread Jannis Leidel
> Would it be possible to use cron's weekday numbering? Would that make > anyone happy? > > 0-7, with both 0 and 7 representing Sunday. That would at least avoid > the %7 part of the workaround (from the user's perspective, anyway). I think that would be a very good compromise. I'll happily work

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-07 Thread Russell Keith-Magee
On Sat, Mar 7, 2009 at 6:30 PM, Tai Lee wrote: > > In my bike shed (and cron's), Sunday is 0 AND 7, which seems nice. > Then your week can starting with Sunday as 0-6  or Monday as 1-7. > > Oh, I see that Bob Thomas already suggested this. Isn't it a moot > point, though? Isn't it considered a ba

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-07 Thread Adones Cunha
Although in Brazil Sunday is not considered a business day, it's considered the first day of the week. I believe the same occurrs in most Latin America. I cannot see where a such decision can influence much in a development environment. Most programming languanges/frameworks/APIs/whatever consider

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-07 Thread Shai Berger
On Friday 06 March 2009, Ivan Sagalaev wrote: > > I was always under an impression that Sunday is considered first day of > week only in US. Now Wikipedia (though not the English version) says > it's also the case for Canada and Israel. But it's still a minority. In Israel, as well as most Arab c

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-07 Thread Tai Lee
In my bike shed (and cron's), Sunday is 0 AND 7, which seems nice. Then your week can starting with Sunday as 0-6 or Monday as 1-7. Oh, I see that Bob Thomas already suggested this. Isn't it a moot point, though? Isn't it considered a backwards incompatible change even if made before 1.1? Or is

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-06 Thread Russell Keith-Magee
On 07/03/2009, at 2:17 AM, Ivan Sagalaev wrote: > > Russell Keith-Magee wrote: >> Semmel and yourself both hang your arguments on the claim that Monday >> as the start of the week is the "most supported" option, or the "most >> common" option. I simply don't see any evidence that this is the >>

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-06 Thread dc
Just my two cents. There is at least one other part of the framework which considers Sunday as the first day: django.utils.dateformat.DateFormat (and hence some template tags). Personally i find it annoying but at least this behaviour is consistent over the framework and that's good. --~--~---

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-06 Thread Ivan Sagalaev
Russell Keith-Magee wrote: > Semmel and yourself both hang your arguments on the claim that Monday > as the start of the week is the "most supported" option, or the "most > common" option. I simply don't see any evidence that this is the case. I was always under an impression that Sunday is consi

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-06 Thread Bob Thomas
Would it be possible to use cron's weekday numbering? Would that make anyone happy? 0-7, with both 0 and 7 representing Sunday. That would at least avoid the %7 part of the workaround (from the user's perspective, anyway). The "Monday as first day" camp could use 1-7 for their week numbering, an

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-05 Thread Russell Keith-Magee
On Fri, Mar 6, 2009 at 12:26 AM, Jannis Leidel wrote: > > Am 05.03.2009 um 12:24 schrieb Russell Keith-Magee: > >> On Thu, Mar 5, 2009 at 7:13 PM, Semmel wrote: >>> >>> Hi fellow developers. >>> >>> I think that the choice for Sunday being the first day of the week is >>> an obvious but really b

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-05 Thread Shai Berger
I wonder if it is not better to hang this issue as another bullet-point on the I18N ticket[1], like Oracle seems[2] to do. To prevent repetitions of %7+1 code like the example given in Semmel's ticket[3], I think a cleaner approach would be to let the week_day filter take a date parameter as

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-05 Thread Jannis Leidel
Am 05.03.2009 um 12:24 schrieb Russell Keith-Magee: > On Thu, Mar 5, 2009 at 7:13 PM, Semmel wrote: >> >> Hi fellow developers. >> >> I think that the choice for Sunday being the first day of the week is >> an obvious but really bad choice. >> >> View my ticket here: http://code.djangoproject.co

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-05 Thread Semmel
On 5 Mrz., 12:24, Russell Keith-Magee wrote: > I agree with the Karen's comment when she closed your ticket wontfix. > There is no absolute answer to this question; no matter what value you > choose, there will be inconveniences. The conversion - if it is > required - isn't an expensive or diffic

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-05 Thread Russell Keith-Magee
On Thu, Mar 5, 2009 at 7:13 PM, Semmel wrote: > > Hi fellow developers. > > I think that the choice for Sunday being the first day of the week is > an obvious but really bad choice. > > View my ticket here: http://code.djangoproject.com/ticket/10345 ... > I think that this choice is not good in a

'week_day' starting with sunday as first day of a week need to be fixed

2009-03-05 Thread Semmel
Hi fellow developers. I think that the choice for Sunday being the first day of the week is an obvious but really bad choice. View my ticket here: http://code.djangoproject.com/ticket/10345 My thoughts about this: --- #7672 introduced a new lookup type for weekdays that was committed in [9818].