Bug 1038948

Summary: Default value of 'Short Date' field is rendered incorrectly
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jan Hrcek <jhrcek>
Component: Form ModelerAssignee: Pere Fernàndez <pere.fernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Hrcek <jhrcek>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.0CC: kverlaen, rrajasek, rzhang
Target Milestone: CR1   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:08:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Default value of Short date incorrect none

Description Jan Hrcek 2013-12-06 08:43:04 UTC
Created attachment 833469 [details]
Default value of Short date incorrect

Description of problem:
This is followup on Bug 1013462
It seems that for all the filed types the 'Default formula' property is working correctly, except for 'Short Date' which displays month incorrectly

See screenshot attached.

Version-Release number of selected component (if applicable):
BPMS 6.0.0 ER5

How reproducible:
Always

Steps to Reproduce:
1. Create a form, go to Add fields by type
2. Add field of type Short date and in its properties set Default value formula to: =new java.util.Date()

Actual results:
Month part of a date field in date is displayed incorrectly. Notice, that for the field of type Timestamp, it is rendered correctly.

Expected results:
Default value should be generated correctly.

Comment 1 Pere Fernàndez 2013-12-18 14:51:37 UTC
There was an error on the ShortDate Pattern.

Commits (master): https://github.com/droolsjbpm/jbpm-form-modeler/commit/de9635397c8cb6331ad38102e80853a9616f1bf4

Comment 2 Pere Fernàndez 2013-12-19 13:55:37 UTC
There was a problem with the pattern used to render short dates.

Commit (master): https://github.com/droolsjbpm/jbpm-form-modeler/commit/de9635397c8cb6331ad38102e80853a9616f1bf4

Commit (6.0.x): https://github.com/droolsjbpm/jbpm-form-modeler/commit/d3e592b4dc98ba21eb6edba7d35f5756d68cafcf

Comment 3 Jan Hrcek 2014-01-22 06:19:03 UTC
Ok, verified with BPMS 6.0.0 CR1