Bug 1038948 - Default value of 'Short Date' field is rendered incorrectly
Summary: Default value of 'Short Date' field is rendered incorrectly
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Form Modeler
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: CR1
: 6.0.0
Assignee: Pere Fernàndez
QA Contact: Jan Hrcek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-06 08:43 UTC by Jan Hrcek
Modified: 2014-08-06 20:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:08:00 UTC
Type: Bug


Attachments (Terms of Use)
Default value of Short date incorrect (100.01 KB, image/png)
2013-12-06 08:43 UTC, Jan Hrcek
no flags Details

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


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