You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "mark xiao (JIRA)" <ji...@apache.org> on 2013/05/22 12:18:19 UTC

[jira] [Created] (WW-4075) struts2 core 2.1.8.1 framework defined tag:datepick issue

mark xiao created WW-4075:
-----------------------------

             Summary: struts2 core 2.1.8.1 framework defined tag:datepick issue
                 Key: WW-4075
                 URL: https://issues.apache.org/jira/browse/WW-4075
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - Tags
    Affects Versions: 2.1.8.1
         Environment: jre 1.6.0_34
SpringSource Tool Suite 
Version: 2.6.1.RELEASE
windows7 os
dynamic web module 2.4
javascript 1.0
            Reporter: mark xiao


while using this modulized component to overwrite calendar 
as our local/country calender year to add/minus 1911 between
A.D. and ROC calendar year for browser interpreter(A.D.) 
and browser user(ROC calendar).

the following snippet would set back ROC year 99(A.D:2010)
as ROC year 1999 (add extra 1900).
even tried set dateFormat as yy/mm/dd or yyyy/mm/dd or yyy/mm/dd,
they didn't work.
try to set a judgement if (o.year.length == 2) skip the line below.
---snippet---
jquery.struts2.js
line1209
$elem.val($.datepicker.formatDate(params.dateFormat, new Date(o.year, o.month, o.day)));
---
could anyone tell me the formal solution?
Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira