orage first weekday

Juha kautto.juha at kolumbus.fi
Wed Sep 16 16:03:21 CEST 2009


19971201 is Monday
2-1 = 1
so starting from Monday and stepping one step forward brings us to
Tuesday as week starting day.

This is wrong, so please inform your distro packager to fix it.

Juha

Andrew kirjoitti:
> Juha wrote:
>> Yes, I agree the problem probably is in your distro's locale,
>> but it is a little bit more complex than what Yves-Alexis said.
>>
>>
>> Check also
>>
>> locale week-1stday
>>
>> And find out which weekday that is. (cal mm yyyy)
>> It gives you the starting day for counting.
>>
>> Since your locale first_weekday is 2, you need to step 1 (=2-1)
>> step forward from the day you got from locale week-1stday.
>> (using the list locale day
>> Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday )
>>
>> (Common error is that maintainers set week-1stday to be Monday,
>> which in this case would make the real week starting day Tuesday.)
>>
>>
>> for example in my system:
>> LANG=en_GB.utf8 locale first_weekday day week-1stday
>> 1
>> Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday
>> 19971201
>> Gives first weekday Monday.
>>
>> and
>> LANG=en_US.utf8 locale first_weekday day week-1stday
>> 1
>> Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday
>> 19971130
>> Gives first weekday Sunday.
>>
>>
>> Juha
>
> Thanks for your help. Not sure I follow it all, but this is what I get:
>
> locale first_weekday day week-1stday
> 2
> Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday
> 19971201
>
> Now what?
>
> Thanks again,
>
> Andrew
>
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce
> http://www.xfce.org



More information about the Xfce mailing list