Skip to content

Commit

Permalink
Fallback for IE.
Browse files Browse the repository at this point in the history
It could happen...
  • Loading branch information
joedolson committed Apr 26, 2023
1 parent 073d13e commit 30c2808
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wp-a11y-day/js/talk-time.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
'use strict';
$(function () {
var zone = Intl.DateTimeFormat().resolvedOptions().timeZone;
// Handle IE fallback.
if ( undefined === zone ) {
zone = 'your local time';
}
/**
* Render speaker application input times to local timezones.
*/
Expand Down

0 comments on commit 30c2808

Please # to comment.