Skip to content

Commit f754c2d

Browse files
committed
fix txH
1 parent aa84f2b commit f754c2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jqClock.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ if (!Number.prototype.map) {
288288
Object.freeze($.clock);
289289

290290
//_jqClock contains references to each clock's settimeouts
291-
let _jqClock = _jqClock || {};
291+
let _jqClock = {};
292292

293293
$.fn.clock = function (options) {
294294
let _this = this;
@@ -397,7 +397,7 @@ if (!Number.prototype.map) {
397397
"O": ( clk ) => (clk.tzH < 0
398398
? "+" +
399399
("" + Math.abs(clk.tzH)).padStart(2, "0")
400-
: tzH > 0
400+
: clk.tzH > 0
401401
? ("" + clk.tzH * -1).padStart(2, "0")
402402
: "+00") + "00",
403403
//Difference to Greenwich time (GMT) with colon between hours and minutes
@@ -432,8 +432,8 @@ if (!Number.prototype.map) {
432432
(clk.tzH < 0
433433
? "+" +
434434
("" + Math.abs(clk.tzH)).padStart(2, "0")
435-
: tzh > 0
436-
? ("" + clk.tzh * -1).padStart(2, "0")
435+
: clk.tzH > 0
436+
? ("" + clk.tzH * -1).padStart(2, "0")
437437
: "+00") +
438438
":00",
439439
//» RFC 2822 formatted date | Example: Thu, 21 Dec 2000 16:01:07 +0200

0 commit comments

Comments
 (0)