X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-debug.js;h=9a90d06ab682172a9798a27c496bda8f81a8f87d;hb=57c45680bcec3818d9cbcd3f422abbe69559f6b2;hp=fe1592fa44ad7463bef11fa2d06b9f00eae6568c;hpb=913302f261c1d4e42047a0931174836fe2dd3e03;p=roojs1 diff --git a/roojs-debug.js b/roojs-debug.js index fe1592fa44..9a90d06ab6 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -68,7 +68,7 @@ Roo.apply = function(o, c, defaults){ document.execCommand("BackgroundImageCache", false, true); }catch(e){} } - + Roo.apply(Roo, { /** * True if the browser is in strict mode @@ -1006,7 +1006,7 @@ Format Output Description H 15 24-hour format of an hour with leading zeros i 05 Minutes with leading zeros s 01 Seconds, with leading zeros - O -0600 Difference to Greenwich time (GMT) in hours + O -0600 Difference to Greenwich time (GMT) in hours (Allows +08, without minutes) P -06:00 Difference to Greenwich time (GMT) with colon between hours and minutes T CST Timezone setting of the machine running the code Z -21600 Timezone offset in seconds (negative if west of UTC, positive if east) @@ -1387,7 +1387,9 @@ Date.formatCodeToRegex = function(character, currentGroup) { "o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))?\n", // -12hrs <= GMT offset <= 14hrs " (sn + String.leftPad(hr, 2, 0) + String.leftPad(mn, 2, 0)) : null;\n" ].join(""), - s:"([+\-]\\d{4})"}; + s:"([+\-]\\d{2,4})"}; + + case "P": return {g:1, c:[ @@ -1772,11 +1774,28 @@ Date.prototype.add = function(interval, value){ *