Set Promise to be Bluebird globally

closes #9064
This commit is contained in:
kirrg001 2017-12-13 19:06:16 +01:00 committed by Katharina Irrgang
parent 4f35f86713
commit 7353c87d7f

View File

@ -1,4 +1,6 @@
var moment = require('moment-timezone');
'use strict';
const moment = require('moment-timezone');
/**
* force UTC
@ -8,3 +10,8 @@ var moment = require('moment-timezone');
* - be careful when you work with date operations, therefor always wrap a date into moment
*/
moment.tz.setDefault('UTC');
/**
* https://github.com/TryGhost/Ghost/issues/9064
*/
global.Promise = require('bluebird');