Skip to content

Commit

Permalink
replace moment by date-fns
Browse files Browse the repository at this point in the history
  • Loading branch information
vilsbole committed Feb 3, 2018
1 parent 1f8f850 commit 8d863b4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"dependencies": {
"axios": "^0.16.2",
"moment": "^2.19.2",
"date-fns": "^1.29.0",
"vue": "^2.5.8",
"vue-axios": "^2.0.2",
"vue-markdown": "^2.2.4",
Expand Down
4 changes: 2 additions & 2 deletions src/common/date.filter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import moment from 'moment'
import { default as format } from 'date-fns/format'

export default (date) => {
return moment(date).format('MMM DD, YYYY')
return format(new Date(date), 'MMMM D, YYYY')
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1804,6 +1804,10 @@ data-uri-to-buffer@1:
version "1.2.0"
resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-1.2.0.tgz#77163ea9c20d8641b4707e8f18abdf9a78f34835"

date-fns@^1.29.0:
version "1.29.0"
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-1.29.0.tgz#12e609cdcb935127311d04d33334e2960a2a54e6"

date-now@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b"
Expand Down Expand Up @@ -4527,10 +4531,6 @@ mocha@^3.2.0:
mkdirp "0.5.1"
supports-color "3.1.2"

moment@^2.19.2:
version "2.20.1"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.20.1.tgz#d6eb1a46cbcc14a2b2f9434112c1ff8907f313fd"

move-concurrently@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/move-concurrently/-/move-concurrently-1.0.1.tgz#be2c005fda32e0b29af1f05d7c4b33214c701f92"
Expand Down

0 comments on commit 8d863b4

Please sign in to comment.