Export to GitHub

struts2-jquery - issue #43

Datepicker localized format


Posted on Jan 4, 2010 by Happy Elephant

What steps will reproduce the problem? 1. Create a localized web application (e.g. <sj:head locale="en,it">) 2. Switch from a language to the other 3. Select a date from the picker

What is the expected output? What do you see instead?

The expected output shold be a date formatted according to the specified locale (e.g. the short format for '03 Jan 2010' in England is 01/03/2009, in Italy is 03/01/2009)

What i see instead is a date with a "fixed" format (the one specified with the parameter displayFormat)

Which struts2 version? 2.1.8.1

Which struts2-jquery plugin version? 1.8.0

Please provide any additional information below.

Comment #1

Posted on Jan 5, 2010 by Swift Lion

There is a fix in current SVN trunk.

Now the date was formated with local defaults if displayFormat is not set.

Comment #2

Posted on Jan 7, 2010 by Swift Lion

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Defect Priority-Low Component-Logic