svn commit: r1616276 - in /ofbiz/branches/release12.04: ./ framework/widget/templates/htmlFormMacroLibrary.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1616276 - in /ofbiz/branches/release12.04: ./ framework/widget/templates/htmlFormMacroLibrary.ftl

jleroux@apache.org
Author: jleroux
Date: Wed Aug  6 16:48:01 2014
New Revision: 1616276

URL: http://svn.apache.org/r1616276
Log:
"Applied fix from trunk for revision: 1616272"  (conflicts handled by hand)
------------------------------------------------------------------------
r1616272 | jleroux | 2014-08-06 18:39:30 +0200 (mer. 06 août 2014) | 3 lignes

A patch from Leon for "Wrong timeFormat of datetimepicker causes hours represented as 12 not 24" https://issues.apache.org/jira/browse/OFBIZ-5702

Latest datetimepicker add-on uses "timeFormat" option to detect am/pm, lowercase "h" represents 12hr am/pm, uppercase "H" represents 24 hr. (see https://github.com/trentrichardson/jQuery-Timepicker-Addon/issues/547). The datetime input widget that relying on this add-on does not work correctly: it's in 12-hours format not 24 hours.
------------------------------------------------------------------------

Modified:
    ofbiz/branches/release12.04/   (props changed)
    ofbiz/branches/release12.04/framework/widget/templates/htmlFormMacroLibrary.ftl

Propchange: ofbiz/branches/release12.04/
------------------------------------------------------------------------------
  Merged /ofbiz/trunk:r1616272

Modified: ofbiz/branches/release12.04/framework/widget/templates/htmlFormMacroLibrary.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/release12.04/framework/widget/templates/htmlFormMacroLibrary.ftl?rev=1616276&r1=1616275&r2=1616276&view=diff
==============================================================================
--- ofbiz/branches/release12.04/framework/widget/templates/htmlFormMacroLibrary.ftl (original)
+++ ofbiz/branches/release12.04/framework/widget/templates/htmlFormMacroLibrary.ftl Wed Aug  6 16:48:01 2014
@@ -171,7 +171,7 @@ under the License.
                  jQuery("#${id}").datetimepicker({
                     showSecond: true,
                     <#-- showMillisec: true, -->
-                    timeFormat: 'hh:mm:ss',
+                    timeFormat: 'HH:mm:ss',
                     stepHour: 1,
                     stepMinute: 1,
                     stepSecond: 1,
@@ -471,7 +471,7 @@ ${item.description}</span>
              jQuery("#${name?html}_fld0_value").datetimepicker({
                 showSecond: true,
                 <#-- showMillisec: true, -->
-                timeFormat: 'hh:mm:ss',
+                timeFormat: 'HH:mm:ss',
                 stepHour: 1,
                 stepMinute: 5,
                 stepSecond: 10,
@@ -507,7 +507,7 @@ ${item.description}</span>
              jQuery("#${name?html}_fld1_value").datetimepicker({
                 showSecond: true,
                 <#-- showMillisec: true, -->
-                timeFormat: 'hh:mm:ss',
+                timeFormat: 'HH:mm:ss',
                 stepHour: 1,
                 stepMinute: 5,
                 stepSecond: 10,