Welcome, Guest
Please Login or Register.    Lost Password?

Wrong week of year No. - not respecting ISO 8601
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Wrong week of year No. - not respecting ISO 8601
#19585
Wrong week of year No. - not respecting ISO 8601 1 Year, 1 Month ago  
According to the EU norm EN 28601 and ISO 8601 , the first week of a year is the week that contains the first Thursday of the year. It is also (equivalently) the week containing the 4th day of January.
Source: en.wikipedia.org/wiki/ISO_week_date

Rainlendar2 supports only Sunday or Monday as first days of week, when counting the number of weeks, according to the the following information from Wiki:

%U Week of year as decimal number, with Sunday as first day of week (00 - 53)
%W Week of year as decimal number, with Monday as first day of week (00 - 53).

This may work in the USA and UK, but not in the EU.

So, we have 27th week now (July 5), Rainlendar2 diplays 26th in the Event List (%W). No setting can change it, including system registry or RL2 settings (different first day of week in the preferences).

Well, question to the developers: Do you consider fixing Ranlednar2, in order to support European week number formats?
Please, add an item to the preferences like "Set week number according to the ISO".

Thank you.
redfox
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2013/07/06 09:27 By redfox.
The administrator has disabled public write access.
 
#19586
Re: Wrong week of year No. - not respecting ISO 8601 1 Year, 1 Month ago  
Can you post an image? I try it and works fine.
Which version are you using?

Rainlendar2 follows the ISO 8601. %U and %W came from the Unix command Date (unixhelp.ed.ac.uk/CGI/man-cgi?date).
The Rainlendar2's author is from Europe, so I don't think he made it wrong.

But, if nothing works, there is: Options... -> Advanced -> General -> Week number delta
Jorge_Luis
Platinum Boarder
Posts: 792
graphgraph
User Offline Click here to see the profile of this user
Gender: Male My Rainlendar Skins Location: Argentina Birthday: 03/15
Last Edit: 2013/07/05 15:24 By Jorge_Luis.
The administrator has disabled public write access.
 
#19590
Re:Wrong week of year No. - not respecting ISO 8601 1 Year, 1 Month ago  
According to the page you linked, the correct syntax is:

%V ISO week number, with Monday as first day of week (01..53)

As far as I tried, Rainlendar2 really does not recognize %V (or %G) , thus the ISO in not supported in this case.

I hope the devs will fix it soon.
redfox
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2013/07/06 08:04 By redfox.
The administrator has disabled public write access.
 
#19591
Re:Wrong week of year No. - not respecting ISO 8601 1 Year, 1 Month ago  
This is a picture of my calendar with Monday as start weekday and it shows July 5th in the Week 27. The Event list's header is set to show %U and %W.



By the way, I never see Week 00 in the skin... the app always start in 1.
Jorge_Luis
Platinum Boarder
Posts: 792
graphgraph
User Offline Click here to see the profile of this user
Gender: Male My Rainlendar Skins Location: Argentina Birthday: 03/15
Last Edit: 2013/07/06 08:37 By Jorge_Luis.
The administrator has disabled public write access.
 
#19593
Re:Wrong week of year No. - not respecting ISO 8601 1 Year, 1 Month ago  
If you take a closer look at your own screenshot (top), the dates 06/07 and 07/07 in the Event List show week number 26 (W26), which is a wrong value. As it has been mentioned in the manual, both %U and %W are not ISO compatible.

%U week number of year, with Sunday as first day of week (00..53)
%W week number of year, with Monday as first day of week (00..53)


The correct week numbers are listed only in the calendar window below.

I personally use only the Event List for my tasks, and it shows the current week number as 26 (it should be 27), like in your screenshot.
The "right" ISO compatible variable %V is not yet supported. If I change %W to %V in the skin file, I only get "%V" as a result, not a value.

RL2 devs simply omitted to include some variables from the Unix command Date, %V is one of them...
redfox
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2013/07/06 13:57 By redfox.
The administrator has disabled public write access.
 
#19612
Re:Wrong week of year No. - not respecting ISO 8601 1 Year, 1 Month ago  
The date format is handled by the framework and in most cases it seems to call the operating system service directly which converts the format to the actual text. So, the result can differ depending what OS you are running. Windows does not seem to support the %V at all but it should work on Linux (and probably on Mac too).
Rainy
Moderator
Posts: 5946
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
get the latest posts directly to your desktop