Update index.html

This commit is contained in:
AJ ONeal 2021-07-22 19:03:59 -06:00 committed by GitHub
parent d314200e03
commit 7acf670aa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -31,8 +31,11 @@
<br />
<span class="js-my-dt">YYYY-MM-DDThh:mm:ss.mmm+0000</span>
</h3>
<pre><code>new Intl.DateTimeFormat().resolvedOptions().timeZone;</code></pre>
Current Time Zone: <span class="js-my-tz">America/XXXX</span>
<br />
<pre><code>String(((new Date()).getTimezoneOffset() / 60)).padStart(2, '0') +
String(((new Date()).getTimezoneOffset() % 60)).padStart(2, '0')</code></pre>
Current Time Offset: <span class="js-my-offset">-0000</span>
<hr />