Update index.html
This commit is contained in:
parent
d314200e03
commit
7acf670aa6
|
@ -31,8 +31,11 @@
|
||||||
<br />
|
<br />
|
||||||
<span class="js-my-dt">YYYY-MM-DDThh:mm:ss.mmm+0000</span>
|
<span class="js-my-dt">YYYY-MM-DDThh:mm:ss.mmm+0000</span>
|
||||||
</h3>
|
</h3>
|
||||||
|
<pre><code>new Intl.DateTimeFormat().resolvedOptions().timeZone;</code></pre>
|
||||||
Current Time Zone: <span class="js-my-tz">America/XXXX</span>
|
Current Time Zone: <span class="js-my-tz">America/XXXX</span>
|
||||||
<br />
|
<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>
|
Current Time Offset: <span class="js-my-offset">-0000</span>
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue