Refactored moment.js out of app

Reduces bundle size by 25%
This commit is contained in:
Dan Brown
2018-04-01 14:10:12 +01:00
parent 736d7118b0
commit 0ade9b5b9b
7 changed files with 22 additions and 29 deletions

View File

@ -275,11 +275,10 @@ class PageController extends Controller
$draft = $this->entityRepo->updatePageDraft($page, $request->only(['name', 'html', 'markdown']));
$updateTime = $draft->updated_at->timestamp;
$utcUpdateTimestamp = $updateTime + Carbon::createFromTimestamp(0)->offset;
return response()->json([
'status' => 'success',
'message' => trans('entities.pages_edit_draft_save_at'),
'timestamp' => $utcUpdateTimestamp
'timestamp' => $updateTime
]);
}