Issue 1057 in struts2-jquery: datepicker can't parse a string value with a time component

56 views
Skip to first unread message

struts2...@googlecode.com

unread,
Oct 25, 2013, 10:11:40 AM10/25/13
to struts2...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1057 by vmlmil...@gmail.com: datepicker can't parse a string
value with a time component
http://code.google.com/p/struts2-jquery/issues/detail?id=1057

What steps will reproduce the problem?
1. <sj:datepicker value="2004-08-14 03:25" displayFormat="yy-mm-dd"
timepicker="true" timepickerFormat="hh:mm"/>
2.
3.

What is the expected output? What do you see instead?
The above tag should display the date and time as "2004-08-14 03:25" but it
shows "2004-08-14 12:00" because the time component is never parsed

Which struts2 version? 2.3.15.2


Which struts2-jquery plugin version? 3.6.1


Please provide any additional information below.
DatePicker.java parses the string value according to some patterns that
never take into consideration the timepickerFormat attribute, so the time
component is always lost.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

struts2...@googlecode.com

unread,
Feb 21, 2014, 11:04:34 AM2/21/14
to struts2...@googlegroups.com

Comment #1 on issue 1057 by richardy...@gmail.com: datepicker can't parse a
I have the same issue. My default value is "2014-02-28 10:45 AM" but it
shows up "2014-02-28 00:00 AM" instead.

struts2...@googlecode.com

unread,
Apr 10, 2014, 3:21:06 PM4/10/14
to struts2...@googlegroups.com
Updates:
Status: Accepted
Owner: johgep
Labels: Component-Plugin

Comment #2 on issue 1057 by johgep: datepicker can't parse a string value
(No comment was entered for this change.)

struts2...@googlecode.com

unread,
Apr 10, 2014, 3:57:12 PM4/10/14
to struts2...@googlegroups.com

Comment #3 on issue 1057 by johgep: datepicker can't parse a string value
Issue 1072 has been merged into this issue.

struts2...@googlecode.com

unread,
Jul 11, 2014, 2:30:05 PM7/11/14
to struts2...@googlegroups.com

Comment #4 on issue 1057 by prem30...@gmail.com: datepicker can't parse a
Is `dd/mm/yy` a valid pattern for datepicker's displayFormat attribute???

struts2...@googlecode.com

unread,
Jan 1, 2015, 11:53:18 AM1/1/15
to struts2...@googlegroups.com

Comment #5 on issue 1057 by kamalpat...@gmail.com: datepicker can't parse a
string value with a time component
https://code.google.com/p/struts2-jquery/issues/detail?id=1057

when will this issue be resolved?

struts2...@googlecode.com

unread,
Jan 7, 2015, 8:43:58 AM1/7/15
to struts2...@googlegroups.com

Comment #6 on issue 1057 by swift...@gmail.com: datepicker can't parse a
Waiting for it to be solved, there is an easy workaround:

http://stackoverflow.com/a/27544567/1654265

struts2...@googlecode.com

unread,
Jan 7, 2015, 8:45:09 AM1/7/15
to struts2...@googlegroups.com

Comment #7 on issue 1057 by andreali...@gmail.com: datepicker can't parse a
Reply all
Reply to author
Forward
0 new messages