0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Add parent call in user.format to fix dateTime

closes #5066

- fix a problem that user model will fail to save if mysql has option of
STRICT_TRANS_TABLES
- add a parent call in user.format override function, which should fix
dateTime format before user saved.
This commit is contained in:
baogechen 2015-03-25 12:11:25 +08:00 committed by Hannah Wolfe
parent 5015180474
commit 351298b83b

View file

@ -110,7 +110,7 @@ User = ghostBookshelf.Model.extend({
protocols: ['http', 'https']})) {
options.website = 'http://' + options.website;
}
return options;
return ghostBookshelf.Model.prototype.format.call(this, options);
},
posts: function () {