Zim

Date parameter returns week number minus 1

Bug #1496647 reported by mtibbi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Expired
Undecided
Unassigned

Bug Description

I am trying to configure calendar dates.list to include the week number in date information. But parameter %W is returning actual week number minus 1. The same occurs for %U.

For instance:
%d/%m/%Y (week %W) returns 31/08/2015 (week 35)
but this date should be in week 36.

Zim 0.63; Windows 7; Brazilian-Portuguese

Revision history for this message
mtibbi (marcio-tibirica) wrote :

I am adding a screen capture of the time stamp produced by two different setups for the week.

One setup is using %W and another is using %U.

Both setups should return the week number 38, as shown in the headline of the page, but they are returning 37 instead.

%d/%m/%Y (week %W)
16/09/2015 (week 37)

%d/%m/%Y (week %U)
16/09/2015 (week 37)

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Testing zim 0.64 on windows 7, US locale, seems to behave as expected. Code inspection I see this formatting is done directly by python's own datetime.strftime function, not modified by zim itself.

No clue how to pinpoint.

Changed in zim:
status: New → Incomplete
Revision history for this message
mtibbi (marcio-tibirica) wrote :

I tried to reproduce the failure with Zim 0.65 on Windows 10, BR-PT locale. Also tried with Zim 0.63 portable on previous machine with Windows 7, BR-PT locale. In both cases I was unable to reproduce the problem.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Zim because there has been no activity for 60 days.]

Changed in zim:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.