mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
no issue - client dates are sent as ISO format (moment(..).format()) - server dates are in JS Date format >> when bookshelf fetches data from the database, all dates are transformed into JS dates >> see `parse` helper function - Bookshelf updates the model with the client data via Bookshelf's `set` function - therefor Bookshelf uses a simple `isEqual` function from lodash to detect changes - .previous(attr) and .get(attr) return false - that has the concequence that dates are always marked as "changed" - internally we use our `hasDateChanged` if we have to compare previous/updated dates - but Bookshelf is not in our control for this case |
||
---|---|---|
.. | ||
base | ||
plugins | ||
accesstoken.js | ||
app-field.js | ||
app-setting.js | ||
app.js | ||
client-trusted-domain.js | ||
client.js | ||
index.js | ||
invite.js | ||
permission.js | ||
post.js | ||
refreshtoken.js | ||
role.js | ||
settings.js | ||
subscriber.js | ||
tag.js | ||
user.js |