Skip to content

Commit

Permalink
prevent date from showing in PHP style T option
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Mar 18, 2024
1 parent 65779c8 commit 9098c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jqClock.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ if (!Number.prototype.map) {
"T": ( clk ) => new Intl.DateTimeFormat( clk.myoptions.locale, {
timeZone: clk.myoptions.timezone,
timeZoneName: "short"
} ).format( clk.mytimestamp_sysdiff ),
} ).formatToParts( clk.mytimestamp_sysdiff ).filter(e => e.type === 'timeZoneName')[0].value,
//Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive.
"Z": ( clk ) => clk.tzS < 0
? "" + Math.abs(clk.tzS)
Expand Down

0 comments on commit 9098c34

Please sign in to comment.