This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 178677 - Jira error: Invalid date format
Summary: Jira error: Invalid date format
Status: RESOLVED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Jira (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-15 11:46 UTC by azulcm
Modified: 2010-12-23 09:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Data Time Format configuration of the jira server. (36.92 KB, image/png)
2009-12-15 11:46 UTC, azulcm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description azulcm 2009-12-15 11:46:47 UTC
Created attachment 92626 [details]
Data Time Format configuration of the jira server.

When I use the "Update Issue" feature of the commit dialog, and enable the "Resolve as Fixed" and "Add details to commit message and issue". I get the following message:


The jira issue tracker 'jira' returned the following response:

Invalid date format. Please enter the date in the format "d/MMM/yy".

The commit to mercurial works but no comment or action is done in jira. I think that the jira plugin is sending dates in a different format from the managed by the server but I couldn't find where to configure this in the plugin. 

Changing the date format in the Jira server is not an option. Attached to this issue is an image of the Date/Time Formats in my Jira server.
Comment 1 Tomas Stupka 2010-04-07 17:19:17 UTC
custom date formates aren't supported yet.
Comment 2 guinsel 2010-04-10 08:48:45 UTC
I have the same problem and is very frustrating. What is the date format in Jira for Netbeans works until it supports the date format settings?
Comment 3 Jan Stola 2010-04-12 12:06:36 UTC
The date/time configuration on the attached screen shot seems to be the default one. The root of your problem probably is not the date/time format but the locale. Note that the default date/time format contains the name of the month. It seems that NetBeans send the name in a different language then the one accepted by your JIRA.

I was able to reproduce this issue when I changed the language of my JIRA account to non-English one.

guinsel, is this also your case? What is the languange setting of your JIRA account?
Comment 4 guinsel 2010-04-12 12:31:52 UTC
Jan you are right. I changed the setup from Spanish to English and it works. I had Jira Netbeans and Spanish. Netbeans now continuing in Spanish but in English Jira
Comment 5 Jan Stola 2010-04-12 13:25:02 UTC
Unfortunately, we are not able to get the correct locale from the server. I will implement a workaround that allow you to set the correct locale manually, i.e., you will not be forced to switch your JIRA account to English with that workaround. Unfortunately, it is too late to do any UI changes in NetBeans 6.9. Hence, I will add a command line switch that will allow you to set the locale and we will add the corresponding graphical UI in the next release.
Comment 6 Jan Stola 2010-04-12 14:19:09 UTC
I have added the mentioned workaround. You can set the JIRA locale used by NetBeans IDE by setting "org.netbeans.modules.jira.locale" system property. For example, you can set this property using command line option
-J-Dorg.netbeans.modules.jira.locale=<your-locale>

We will attempt to add the possibility to set the locale in GUI, see issue 183914.

Modified file: http://hg.netbeans.org/cdev/rev/2391a4506b86
Comment 7 vmh 2010-12-23 08:51:09 UTC
I tried to configure netbeans.conf file putting -J-Dorg.netbeans.modules.jira.locale="yyyy-MM-dd HH:mm:ss" option there but i still get error message:

----------
You did not enter a valid date. Please enter the date in the format "yyyy-MM-dd", eg. "2010-12-23"Invalid date format. Please enter the date in the format "yyyy-MM-dd".Invalid date / time format. Expected yyyy-MM-dd HH:mm:ss
----------

Is there any way to get this work?
Comment 8 Jan Stola 2010-12-23 09:24:39 UTC
> I tried to configure netbeans.conf file putting
> -J-Dorg.netbeans.modules.jira.locale="yyyy-MM-dd HH:mm:ss"

Note that this property is used to set _locale_ (e.g., en_US, fr_CA, etc.), not format. So, this issue is just about modification of locale. It is not about custom formats. I believe that the custom formats are still not supported, see Tomas Stupka's comment above.