[Rt-commit] rt branch, 4.2/timepicker-24h, created. rt-4.1.8-303-g63802f0
Alex Vandiver
alexmv at bestpractical.com
Wed May 15 16:29:49 EDT 2013
The branch, 4.2/timepicker-24h has been created
at 63802f0f4828e972816c1fa21c3d833867d2d44e (commit)
- Log -----------------------------------------------------------------
commit 63802f0f4828e972816c1fa21c3d833867d2d44e
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Wed May 15 16:27:23 2013 -0400
Fix time slider to range 0-24 instead of 0-12,0-12
In the timepicker widget, as of version 1.1 and above (RT upgraded to
1.2 in a3de102), a format of "hh" is 12-hour time, not 24-hour time.
This caused the value inserted by the slider to only range from 0-12.
Properly insert 24-hour times by using "HH" in the format instead of
"hh".
diff --git a/share/static/js/util.js b/share/static/js/util.js
index cfd59ba..bac04d1 100644
--- a/share/static/js/util.js
+++ b/share/static/js/util.js
@@ -196,7 +196,7 @@ jQuery(function() {
hourGrid: 6,
minuteGrid: 15,
showSecond: false,
- timeFormat: 'hh:mm:ss'
+ timeFormat: 'HH:mm:ss'
}) ).each(function(index, el) {
var tp = jQuery.datepicker._get( jQuery.datepicker._getInst(el), 'timepicker');
if (!tp) return;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list