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:
parent
5015180474
commit
351298b83b
1 changed files with 1 additions and 1 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Reference in a new issue