Skip to content

Commit

Permalink
modified comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Oct 13, 2023
1 parent cdcf5af commit a38d264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/IntlPolyfill/polyfillDateTimeFormat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Onyx.connect({
});

export default function () {
// Because JS Engines do not expose default timezone, the polyfill cannot detect local timezone that a browser is in
// We must manually do this by getting the local timezone before adding polyfill
// Because JS Engines do not expose default timezone, the polyfill cannot detect local timezone that a browser is in.
// We must manually do this by getting the local timezone before adding polyfill.
const currentTimezone = timezone.automatic ? Intl.DateTimeFormat().resolvedOptions().timeZone : timezone.selected;

require('@formatjs/intl-datetimeformat/polyfill-force');
Expand Down

0 comments on commit a38d264

Please sign in to comment.