Opened 9 years ago

Closed 8 years ago

#122 closed Enhancement (Invalid)

Updated on date field convert 2-digit year to correct 4-digit year

Reported by: Kim Neerings Owned by:
Priority: -Low Milestone: Unassigned
Component: Admin-App Version: Unknown
Severity: Minor Effort Keywords: date, update
Cc: Lois, Garth

Description

In the IBIS2 Admin App, when a date is entered as mm/dd/yy, it automatically reformats to mm/dd/00yy instead of mm/dd/yyyy. For example, a date entered as 05/12/11 is reformatted to be 05/12/0011, but it should be 05/12/2001.

Change History (9)

comment:1 Changed 9 years ago by Garth Braithwaite

Resolution: invalid
Status: newclosed

Not a bug. The format is defined within the config/spring/common.xml. In this case it is:

<bean id="Common.DateFormatPattern?" class="java.lang.String">

<constructor-arg index="0" type="java.lang.String"><value>MM/dd/yyyy</value></constructor-arg>

</bean>

The UI/page displays the format and if you enter in an invalid format it makes a best guess as to what you wanted. So format of yyyy and you enter in 11 it assumes that the desired date is 0011. If you want to enter /11 as the year then you'd have to change this format property or create an enhancement ticket for new development.

comment:2 Changed 9 years ago by Kim Neerings

Resolution: invalid
Status: closedreopened
Summary: bug in updated on date fieldUpdated on date field convert 2-digit year to correct 4-digit year
Type: defectenhancement

Can we make it display a 4-digit year but convert a 2-digit year to 20xx?

comment:3 Changed 9 years ago by Garth Braithwaite

Owner: changed from Garth to Java Developer
Status: reopenednew

comment:4 Changed 9 years ago by Garth Braithwaite

Owner: changed from Java Developer to Community

comment:5 Changed 9 years ago by Garth Braithwaite

Owner: changed from Community to Java Developer

comment:6 Changed 9 years ago by (none)

Milestone: IBIS-PH Admin-2

Milestone IBIS-PH Admin-2 deleted

comment:7 Changed 9 years ago by Garth Braithwaite

Milestone: Unassigned
Severity: Minor
Version: 2.0Unknown

comment:8 Changed 8 years ago by Garth Braithwaite

Owner: changed from Java Developer to unassigned

comment:9 Changed 8 years ago by Kim Neerings

Resolution: Invalid
Status: newclosed
Note: See TracTickets for help on using tickets.