Bug 1111512 - Date field render wrong value of year
Summary: Date field render wrong value of year
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Form Modeler
Version: 6.0.2
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: DR4
: 6.1.0
Assignee: Pere Fernàndez
QA Contact: Andy Taylor
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-20 08:26 UTC by Henry Han
Modified: 2020-03-27 19:39 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:39:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Henry Han 2014-06-20 08:26:31 UTC
Description of problem:

Date field render wrong value of year. For example, 2014 is renderred as 14. This is not just UI issue, it pass the wrong value to backend. 

How reproducible:

1. add a process variable of type java.util.Date
2. generate forms by clicking "Generate all forms"
3. Print the variable value in a script task, such as: 

java.util.Date ex = (java.util.Date)kcontext.getVariable("enddate");
System.out.println(ex); 

4. start a process instance and input current date

Actual results:

Wed Jun 20 16:03:52 CST 14

Expected results:

Fri Jun 20 16:03:52 CST 2014

Additional info:

This is NOT a display issue. You can see the "Wed". In fact, I tested this today which is Friday! BPMS really misfunctioned and treated it as Jun 20, 0014 which was a Wednesday 2000 years ago.

Comment 4 Pere Fernàndez 2014-06-30 16:27:34 UTC
Reverted 6.0.x commit

Comment 5 Pavel Kralik 2014-12-04 17:00:27 UTC
Verified BPMS 6.1.0.ER2.

Result for now(): Thu Dec 04 17:58:30 CET 2014


Note You need to log in before you can comment on or make changes to this bug.