mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 18:01:36 +03:00
1fd980ee9b
refs https://linear.app/tryghost/issue/CORE-113/start-off-luxon-refactor - we're planning on switching to Luxon for our date/timezone library, eventually replacing `moment` and `moment-timezone` - the first step is to set the global timezone override to UTC, which is done in `core/server/overrides.js` - also adds a test to ensure we're setting the timezone correctly - this was mostly pulled from https://moment.github.io/luxon/#/zones?id=changing-the-default-zone
11 lines
273 B
JavaScript
11 lines
273 B
JavaScript
const should = require('should');
|
|
const luxon = require('luxon');
|
|
|
|
require('../../../core/server/overrides');
|
|
|
|
describe('Overrides', function () {
|
|
it('sets global timezone to UTC', function () {
|
|
should.equal(luxon.DateTime.local().zoneName, 'UTC');
|
|
});
|
|
});
|