mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
f2fd075075
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 |
||
---|---|---|
.. | ||
admin | ||
api | ||
apps | ||
auth | ||
blog | ||
config | ||
controllers/frontend | ||
data | ||
events | ||
helpers | ||
middleware | ||
models | ||
permissions | ||
public | ||
scheduling | ||
settings | ||
storage | ||
themes | ||
translations | ||
utils | ||
views | ||
app.js | ||
errors.js | ||
filters.js | ||
ghost-server.js | ||
i18n.js | ||
index.js | ||
logging.js | ||
overrides.js | ||
update-check.js |