https://bugs.freedesktop.org/show_bug.cgi?id=33801

--- Comment #8 from [email protected] 2012-08-15 10:00:03 UTC ---
Well, I would have have thought that asking for the week number and getting two
different answers, depending on where you asked, would obviously be a bug! :)

weeknum() is the one returning the correct value. The WW formatting seems to
have different code (why?! - surely it should basically be applying a formula
to itself?) and gives what appears to the the USA calculation for week number.

Under the Europe/ISO standard, the first week of the year is the week that has
the first Thursday of the year.

Under the US standard, the first week of the year is the week that has the
first of January (or something; I don't know the exact calculation).

That's why some years they match up and some years they don't. But it's not
like it requires any new code: weeknum() gets it right! Just make sure that WW
is using the correct weeknum() code, yes?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to