You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This flag is problematic because when a time zone is "in DST" is not well
defined. Most time zones in the world don't use DST at all. Of the ones
that do, most go to DST during the summer for half the year, but not all.
For example, the function in Moment.js that provides this functionality
comes with a giant caveat:
https://momentjs.com/docs/#/query/is-daylight-saving-time/
<p>Return information needed to display the given <ahref="#instant"><code>instant</code></a>. This includes
204
-
the UTC offset, the time zone name, and a flag indicating whether
205
-
daylight saving time is active.</p>
198
+
the UTC offset and the time zone name.</p>
206
199
<p>If the timezone cannot be determined for the given <ahref="#instant"><code>instant</code></a>, return a
207
-
<ahref="#timezone_display"><code>timezone-display</code></a> for <code>UTC</code> with a <ahref="#utc_offset"><code>utc-offset</code></a> of 0 and no daylight
208
-
saving time.</p>
200
+
<ahref="#timezone_display"><code>timezone-display</code></a> for <code>UTC</code> with a <ahref="#utc_offset"><code>utc-offset</code></a> of 0.</p>
0 commit comments