Skip to content

Commit

Permalink
fix txH
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Mar 10, 2024
1 parent aa84f2b commit f754c2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jqClock.js
Expand Up @@ -288,7 +288,7 @@ if (!Number.prototype.map) {
Object.freeze($.clock);

//_jqClock contains references to each clock's settimeouts
let _jqClock = _jqClock || {};
let _jqClock = {};

$.fn.clock = function (options) {
let _this = this;
Expand Down Expand Up @@ -397,7 +397,7 @@ if (!Number.prototype.map) {
"O": ( clk ) => (clk.tzH < 0
? "+" +
("" + Math.abs(clk.tzH)).padStart(2, "0")
: tzH > 0
: clk.tzH > 0
? ("" + clk.tzH * -1).padStart(2, "0")
: "+00") + "00",
//Difference to Greenwich time (GMT) with colon between hours and minutes
Expand Down Expand Up @@ -432,8 +432,8 @@ if (!Number.prototype.map) {
(clk.tzH < 0
? "+" +
("" + Math.abs(clk.tzH)).padStart(2, "0")
: tzh > 0
? ("" + clk.tzh * -1).padStart(2, "0")
: clk.tzH > 0
? ("" + clk.tzH * -1).padStart(2, "0")
: "+00") +
":00",
//» RFC 2822 formatted date | Example: Thu, 21 Dec 2000 16:01:07 +0200
Expand Down

0 comments on commit f754c2d

Please sign in to comment.