• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6125: Date values in the vote result are saved as one month earlier.

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension VotePlugin Normal New   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


Date values in the vote result are saved as one month earlier. It is because $mon returned from localtime() starts from 0 not 1, and _getLocalDate() does not offset it when generating a string.

I had to add the below code at line 516 of Core.pm.

%mon += 1; 

A diff is also attached below.

-- TWiki:Main/KyungdahmYun - 18 Nov 2008

Hi TWiki:Main/KyungdahmYun,

I think there is one more issue like in this image (zero percentage)


We have Item6127 also open.

Let us discuss all issues-may be on email or irc and fix all of them. Open to talk any time. Let me know your convenient time.

-- SopanShewale - 21 Nov 2008

Summary Date values in the vote result are saved as one month earlier.
ReportedBy TWiki:Main.KyungdahmYun
Codebase 4.2.3
SVN Range

AppliesTo Extension
Component VotePlugin
Priority Normal
CurrentState New


TargetRelease n/a

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatdiff month_patch.diff r1 manage 0.4 K 2008-11-18 - 06:20 UnknownUser A patch against 2008-10-15 release.
JPEGjpg votepluginissue.JPG r1 manage 10.2 K 2008-11-21 - 12:36 SopanShewale issue with vote plugin
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r3 - 2008-11-21 - SopanShewale
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback