mirror of https://github.com/therootcompany/tz.js
Update index.html
This commit is contained in:
parent
d314200e03
commit
7acf670aa6
|
@ -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 />
|
||||
|
||||
|
|
Loading…
Reference in New Issue