X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-debug.js;h=9a90d06ab682172a9798a27c496bda8f81a8f87d;hb=57c45680bcec3818d9cbcd3f422abbe69559f6b2;hp=13c477a7d3fcbf0439f53e48ec748e48c1955cd3;hpb=701811d2cb97d584d81ad76ff4fb2c57c4f63063;p=roojs1 diff --git a/roojs-debug.js b/roojs-debug.js index 13c477a7d3..9a90d06ab6 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -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){ *