0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server
Katharina Irrgang f2fd075075 🎨 fix previos/current date comparison (isEqual in bookshelf) (#8357)
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
2017-04-19 10:59:09 +02:00
..
admin grunt dev admin livereload (#8176) 2017-03-30 13:27:07 +01:00
api 🎨 delete all content: do not delete subscribers (#8282) 2017-04-05 21:57:41 +01:00
apps Asset amends (#8294) 2017-04-10 11:30:21 +02:00
auth add issued_by column to access token (#8284) 2017-04-11 13:12:14 +01:00
blog Asset amends (#8294) 2017-04-10 11:30:21 +02:00
config Asset amends (#8294) 2017-04-10 11:30:21 +02:00
controllers/frontend Posts per page as theme-config (#8149) 2017-03-14 18:03:36 +01:00
data 🙇 Blog icon utils and publisher.logo for JSON-LD (#8297) 2017-04-11 18:32:06 +02:00
events
helpers 🙇 Blog icon utils and publisher.logo for JSON-LD (#8297) 2017-04-11 18:32:06 +02:00
mail 🎨 Ghost bootstrap: optimise requires (#8121) 2017-03-13 20:07:12 +00:00
middleware 🙇 Blog icon utils and publisher.logo for JSON-LD (#8297) 2017-04-11 18:32:06 +02:00
models 🎨 fix previos/current date comparison (isEqual in bookshelf) (#8357) 2017-04-19 10:59:09 +02:00
permissions 🐛 fix invite permissions for editor (#7889) 2017-01-25 12:07:31 +00:00
public 🎨 Blog icon improvements (#8260) 2017-04-11 13:40:17 +02:00
scheduling Shows help message for broken require in scheduler adapter (#7706) 2017-01-16 21:49:41 +01:00
settings 🔥 🎨 No more updateSettingsCache (#8090) 2017-03-02 23:00:01 +01:00
storage 😱 🎨 Refactor storage adapter (#8229) 2017-04-05 15:10:34 +01:00
themes 😱 🎨 Refactor storage adapter (#8229) 2017-04-05 15:10:34 +01:00
translations 🙇 Blog icon utils and publisher.logo for JSON-LD (#8297) 2017-04-11 18:32:06 +02:00
utils 🙇 Blog icon utils and publisher.logo for JSON-LD (#8297) 2017-04-11 18:32:06 +02:00
views Asset amends (#8294) 2017-04-10 11:30:21 +02:00
app.js 🐛 Fix the config for compression (#8226) 2017-04-03 10:58:07 +02:00
errors.js 🛠 use Ignition for logging/errors (#7869) 2017-01-23 11:04:01 +00:00
filters.js
ghost-server.js Theme loading part 1 (#7989) 2017-02-22 00:26:19 +01:00
i18n.js
index.js 🎨 deny auto switch (#8086) 2017-03-02 19:50:58 +00:00
logging.js 🐛 forward missing logging config: rotation 2017-02-17 18:24:14 +01:00
overrides.js
update-check.js 🎨 send LTS parameter if requesting the update check service (#7954) 2017-02-07 19:51:19 +01:00