orage first weekday
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 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
>> Gives first weekday Monday.
>> LANG=en_US.utf8 locale first_weekday day week-1stday
>> Gives first weekday Sunday.
> Thanks for your help. Not sure I follow it all, but this is what I get:
> locale first_weekday day week-1stday
> Now what?
> Thanks again,
> Xfce mailing list
> Xfce at xfce.org
More information about the Xfce