Skip to content

Commit

Permalink
Set Promise to be Bluebird globally
Browse files Browse the repository at this point in the history
closes #9064
  • Loading branch information
kirrg001 committed Dec 13, 2017
1 parent 4f35f86 commit 7353c87
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion core/server/overrides.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
var moment = require('moment-timezone');
'use strict';

const moment = require('moment-timezone');

/**
* force UTC
Expand All @@ -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');

0 comments on commit 7353c87

Please sign in to comment.