* fix: import moment.js library with moment-timezone support in wrapper Packaging changes broke the mechanism used to make moment.tz available to javascript code. This eliminates the separate moment.js and moment-timezone-with-data-10-year-range.js wrappers and instead imports the timezone-augmented version directly. This provides both the timezone support and the regular moment features. * refactor: put moment on window instead of global for consistency
6 lines
292 B
JavaScript
6 lines
292 B
JavaScript
/* Add the moment object to the global scope - needed until inline scripts using
|
|
* Moment.js are eliminated. When that happens, can import moment in the js files
|
|
* that need it. */
|
|
import moment from "moment-timezone/builds/moment-timezone-with-data-10-year-range";
|
|
window.moment = moment;
|